Created using Python 3.10.4
In this project root directory:
- [optional] Install and create virtual environment (venv)
- Install dependencies
pip install -r requirements.txt
- Run the script
py tetris.py
- Create New Game: key
n
orN
- Pause/Resume the game: key
p
orP
- Move block left: left arrow key
(⬅)
- Move block right: right arrow key
(➡)
- Move block bottom: down arrow key
(⬇)
- Rotate block: key
r
orR
- Install dev dependencies
pip install -r requirements_dev.txt
- Run
pyinstaller --onefile tetris.py
- Copy
assets
dir todist
dir