This is a recreation of the classic Tetris game, built from scratch using Python and the Pygame library.
-
Classic Gameplay: Authentic Tetris experience with falling blocks and line-clearing mechanics.
-
Scoring System: Tracks your score based on lines cleared.
-
Block Physics: Accurate collision detection and block placement on the game grid.
-
User Controls: Intuitive controls for moving and rotating blocks.
To run this project locally, you will need to have Python and the Pygame library installed on your machine.
-
Python 3.8+
-
Pygame library
- Clone this repository to your local machine
- Navigate into the project directory.
- Install Pygame using pip. It's recommended to use the Pygame Community Edition (Pygame-CE).
After installing the prerequisites, you can run the game by executing the main Python file.
-
Move Left:
Left Arrow Key -
Move Right:
Right Arrow Key -
Rotate Block:
Up Arrow Key -
Soft Drop (faster fall):
Down Arrow Key -
Hard Drop (instant fall):
Spacebar
This project is open-source and available under the MIT License