Tetris written in Python using OpenCV (just for fun)
pip install -r requirements.txt
python3 tetris.py
Controls:
- A or Left arrow — move the piece to the left
- D or Right arrow — move the piece to the right
- W or Up arrow — rotate the piece
- S or Down arrow — drop the piece
- Esc — exit the game
Important: The window closing button does not work! Use the Esc key.
- 1 line — 1 point
- 2 lines at once — 4 points
- 3 lines at once — 9 points
- 4 lines at once — 16 points
- More accurate rotation
- Partial drop
- CLI arguments (speed, scale)