Skip to content

Anihouvi/py_tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Tetris Game in Python A simple Tetris game implemented in Python using the Pygame library.

Setup Steps Install Python: To run the Tetris game, you need to have Python installed on your system. Download the latest version of Python from the official website: https://www.python.org/downloads/. Follow the installation instructions for your operating system.

Install Pygame: Pygame is a popular library for creating 2D games with Python. To install Pygame, open your terminal or command prompt, and run the following command:

pip install pygame

Save the Tetris code: Save the Tetris game code provided in the previous responses to a file named tetris.py. Make sure the file is saved in a convenient location, such as your desktop or a dedicated project folder.

Run the Tetris game: Open the terminal or command prompt, and navigate to the directory where you saved the tetris.py file. For example, if you saved the file on your desktop, you can navigate to the desktop directory by running the following command:

cd <foler_name> of the repo

Once you are in the correct directory, run the Tetris game by executing the following command:

python tetris_python.py

Enjoy playing the game :)

Screenshot 2023-04-29 at 08 43 34 Screenshot 2023-04-29 at 08 44 42

About

Build a tetris game using py_game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages