Skip to content

yanazPL/TetrisVS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Python Tetris Game

This project is a complete implementation of the Tetris game using Python and the pygame library. It features all essential game mechanics such as piece rotation, line clearing, and scoring, with additional functionalities like ghost pieces and level progression.

Features

  • Full Tetris gameplay
  • Piece rotation and movement
  • Line clearing and scoring system
  • Level progression with increasing difficulty
  • Display of ghost pieces
  • High score tracking and management

Requirements

To run this game, you will need Python and pygame installed on your system. If you do not have pygame installed, you can install it via pip:

python3 -m pip install -U pygame --user

More info at https://www.pygame.org/wiki/GettingStarted

Installation

Clone this repository to your local machine:

git clone https://github.com/yanazPL/TetrisVS
cd TetrisVS

Usage

To start the game, navigate to the project directory and run:

python3 main.py

Controls

  • Arrow Left/Right: Move the piece left or right
  • Arrow Up: Rotate the piece clockwise
  • Arrow Down: Soft drop
  • Space: Hard drop
  • C: Hold a piece
  • F5: Restart the game
  • F1/Escape: Pause the game

Acknowledgements

  • Special thanks to the pygame community for the excellent documentation and support.
  • Inspired by the classic Tetris game
  • Shoutouts to the https://tetris.wiki community

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages