To run: python3 tetris.py
A random sequence of geometric shapes composed of four square blocks fall down the playing field. The objective of the game is to manipulate these shapes, by moving each one sideways and/or rotating by quarter-turns, so that they form a solid horizontal line without gaps. When such a line is formed, it disappears and any blocks above it fall down to fill the space.
| Action | Key |
|---|---|
| Move Block | Arrow Keys |
| Rotate | Space |
| Quit | q |
| Pause | p |
When an entire row gets filled, the entire row of blocks should disappear. Currently, the game continues running as if nothing should happen.
Currently the controls allow the blocks to go out of bounds on the right, left and bottom borders. The game should not allow that and should keep the blocks inside the game bounds at all times.
Pressing left moves the block right. Instead pressing left should move the block left.