Tetris (part 15)

  • 14
  • Locked
Implement the step() method in the Tetris class. This method should drop the game piece down by one step. If the game piece cannot be placed in the new location, then: a) put it back (bring it back up); b) land it (the game piece "lands"); c) delete all full lines in the field object.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Dave Andrea
Level 41 , Canada
2 August 2020, 03:06
Don't make an alias for your gamePiece. I tried:
Gamepiece g = getGamePiece();
The validator was none too happy.