Before running the game, make sure you have Python and Pygame installed on your system.
-
Install Python: Download and install Python from here.
-
Install Pygame: Install the Pygame library by running the following command:
pip install pygame
Clone this repository to your local machine:
git clone https://github.com/your-username/pytris.gitOnce you have cloned the repository and installed the dependencies, navigate to the project folder and run the game:
cd pytris
python app.pyThe game window should pop up, and you can start playing Tetris!
Left Arrow: Move the block left.
Right Arrow: Move the block right.
Down Arrow: Hard drop the block.
Up Arrow: Rotate the block.
Esc: Pause the game
