A text-based, colorful tetris implementation. The challenge was to code a game of tetris without using any non-default libraries and by displaying everything through console.
Download/clone textris.py and run it inside CMD or your favorite ANSI-compatible terminal. (only tested on Windows)
$ python textris.py
Python version: Python 3.6 or higher
No additional packages/requirements needed!
- D: move right
- A: move left+
- S: "soft" drop
- W: hard drop
- Right Arrow: rotate right
- Left Arrow: rotate left
- Space: hold piece
Scores are saved in a custom file named scores located in the shell's current work directory. To disable score saving and loading, change the SAVESCORE variable in textris.py.
SAVESCORES = False