This is a simple text-based Tetris game implemented in Python. The game runs in the console/terminal and allows players to control Tetriminos (Tetris pieces) as they fall down the game board. The objective is to clear as many lines as possible by filling them with blocks.
- Basic Tetris gameplay mechanics
- Controls: Left (A), Right (D), Down (S), Rotate (R), Quit (Q)
- Scoring system: Earn points for clearing lines
- Python 3.x
keyboard
module (install viapip install keyboard
)
- Clone or download the repository to your local machine.
- Ensure you have Python installed on your system.
- Install the
keyboard
module by runningpip install keyboard
. - Navigate to the directory containing the game files.
- Run the
tetris.py
file using Python:python tetris.py
. - Use the following keys to control the game:
- A: Move piece left
- D: Move piece right
- S: Move piece down (faster)
- R: Rotate piece
- Q: Quit the game
- Try to clear as many lines as possible to earn points and achieve a high score!
This game was created by [Magmus-maker].
This project is licensed under the MIT License - see the LICENSE file for details.