A tetris clone for a terminal, written in Python.
Uses blessed for drawing and keyboard input. The game is tested on Windows and Linux.
First, install blessed which is used to interact with a terminal.
pip install blessedNow, you can run the game:
python blocks.py| Key | Action |
|---|---|
| ←, →, ↓ | Move left, right and down respectively. |
| ↑ | Rotate clockwise. |
| Space | Drop to the bottom of the grid. |
| Q | Quit the game. |
File test_learntris.py contains the learntris implementation, which you can run as described here.
