Skip to content

Faheem12005/Pytris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytris

image

Installation

Prerequisites

Before running the game, make sure you have Python and Pygame installed on your system.

  1. Install Python: Download and install Python from here.

  2. Install Pygame: Install the Pygame library by running the following command:

    pip install pygame

Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/your-username/pytris.git

Running the Game

Once you have cloned the repository and installed the dependencies, navigate to the project folder and run the game:

cd pytris
python app.py

The game window should pop up, and you can start playing Tetris!

Game Controls

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

About

tetris but in python 🕹️

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages