This project is a complete implementation of the Tetris game using Python and the pygame
library. It features all essential game mechanics such as piece rotation, line clearing, and scoring, with additional functionalities like ghost pieces and level progression.
- Full Tetris gameplay
- Piece rotation and movement
- Line clearing and scoring system
- Level progression with increasing difficulty
- Display of ghost pieces
- High score tracking and management
To run this game, you will need Python and pygame
installed on your system. If you do not have pygame
installed, you can install it via pip:
python3 -m pip install -U pygame --user
More info at https://www.pygame.org/wiki/GettingStarted
Clone this repository to your local machine:
git clone https://github.com/yanazPL/TetrisVS
cd TetrisVS
To start the game, navigate to the project directory and run:
python3 main.py
- Arrow Left/Right: Move the piece left or right
- Arrow Up: Rotate the piece clockwise
- Arrow Down: Soft drop
- Space: Hard drop
- C: Hold a piece
- F5: Restart the game
- F1/Escape: Pause the game
- Special thanks to the
pygame
community for the excellent documentation and support. - Inspired by the classic Tetris game
- Shoutouts to the https://tetris.wiki community