This is a tetris game just for learning Python.
Running this tetris game requires:
-
A Python interpreter (version 3.5 or later)
-
numpy (version 1.19.2 or later)
-
PyQt5
If you have an appropriate Python interpreter, you can install these requirements by running the following at the root directory:
$ pip install -r requirements.txt To run tetris, type the following command:
$ python src/main.pyYou can play using your keyboard:
| key | motion |
|---|---|
| → | move right |
| ← | move left |
| ↓ | soft drop |
| ↑, SPACE | hard drop |
| SHIFT | hold |
| z | spin left |
| x | spin right |
| p | pause |
| r | restart |
| ESC | quit game |
This tetris supports the following features:
- Hold
- Next (you can see 5 next minos)
- Bag randomizer
- Super rotation system
- T-spin
- display scores
