A classic Tetris game implemented in Python using the Pygame library. Play the iconic puzzle game right in your terminal!
- Classic Tetris gameplay mechanics.
- Colorful ASCII graphics for a retro feel.
- Controls: Arrow keys to move, Spacebar to rotate, and Esc to quit.
- Python 3.x
- Pygame (install using
pip install pygame
)
-
Clone this repository:
git clone https://github.com/ajay7231/tetris.git
-
Navigate to the project directory:
cd tetris
-
Create and activate a virtual environment (recommended)
python3 -m venv venv source venv/bin/activate
-
Install the dependencies:
pip install -r requirements.txt
-
Run the game:
python3 code/main.py
Acknowledgments
This game was inspired by the classic Tetris game created by Alexey Pajitnov. Special thanks to the Pygame community for providing the game development library.