Skip to content

This is a simple implementation of the classic game Tetris in Python using the Pygame library.

License

Notifications You must be signed in to change notification settings

chizkidd/tetris-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris

This is a simple implementation of the classic game Tetris in Python using the Pygame library.

Game Summary

In this version of Tetris, players can:

  • Move pieces left and right using arrow keys
  • Rotate pieces using the up arrow key
  • Accelerate piece descent using the down arrow key

The game ends when the stack of Tetrominoes reaches the top of the play field.

How to Play

Use the arrow keys to move and rotate the Tetrominoes. The game will end when a new Tetromino cannot be placed at the starting position.

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Clone the Repository

git clone https://github.com/chizkidd/tetris-game.git
cd tetris

Install Dependencies

Make sure you have Python 3.x and Pip installed. Then, install the required dependencies using the requirements.txt file: Install the required packages using pip:

pip install -r requirements.txt

Run the Game

To run the Tetris game, execute the following command in your terminal:

python tetris.py

Files

  • tetris.py: The main script to run the Tetris game.
  • requirements.txt: A file listing the required dependencies (Pygame).

Controls

  • Left Arrow: Move piece left
  • Right Arrow: Move piece right
  • Up Arrow: Rotate piece
  • Down Arrow: Move piece down faster

License

This project is open source and available under the MIT License.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues page if you want to contribute.

Author

Chizoba Obasi

About

This is a simple implementation of the classic game Tetris in Python using the Pygame library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages