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.
Tetris (part 15)
- 14
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Dave Andrea
2 August 2020, 03:06
Don't make an alias for your gamePiece.
I tried:
The validator was none too happy. +1