This repository contains a simple implementation of the classic Tetris game using the Pygame library in Python. The game offers an interactive and enjoyable gaming experience with colorful blocks and smooth gameplay.
-
Classic Tetris Gameplay: Experience the timeless fun of arranging falling blocks to create complete lines.
-
Controls: Use the arrow keys to move the falling blocks left, right, and down. Press the up arrow key to rotate the blocks.
-
Scoring: Earn points by completing lines. The more lines you clear simultaneously, the higher your score.
-
Speed Increase: The game progressively increases in speed, providing a challenging and exciting experience.
Before running the game, ensure you have the following installed:
-
Python 3.x: Download Python
-
Pygame Library: Install using pip [ pygame==2.5.0 used ]
pip install pygame
-
Clone the repository:
git clone https://github.com/sarthaknimbalkar/Tetris.git
-
Navigate to the project directory:
cd Tetris
-
Run the game:
python main.py
-
Enjoy playing Tetris!
-
Left Arrow: Move the falling block left.
-
Right Arrow: Move the falling block right.
-
Down Arrow: Move the falling block down faster.
-
Up Arrow: Rotate the falling block.
Contributions to the project are welcome. If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.