This is a classic Tetris game implemented using Python and Tkinter for the graphical user interface. The game allows you to control falling tetrominoes, complete lines, and score points.
- Clone the Repository:
git clone https://github.com/Andriy852/Tetris-Project-in-Python.git
cd Tetris-Project-in-Python- Install Dependencies: If Tkinter is not installed with your Python, you can install it using the following:
- For macOS (using Homebrew)
brew install tcl-tk
- For Windows/Linux: Tkinter is generally included with Python, but you may need to install the python3-tk package via your system's package manager if it's missing.
- Run the Game: Open a terminal and run the main.py file:
python main.py- Play the Game:
- Press Start to begin a new game.
- Use the following controls to play:
- Down Arrow: Move the tetromino down.
- Up Arrow: Rotate the tetromino.
- Left Arrow: Move the tetromino left.
- Right Arrow: Move the tetromino right.
- Pause: Press the Pause button to pause the game.
- Continue: Press the Continue button to resume the game from where it was paused.
- Complete a Line: Every time you complete a line, you earn 100 points.