Skip to content

sultanofficial717/Python-Tetris-Game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Tetris Game

About the Game

This Tetris game is a classic puzzle game where players rotate and place falling blocks (tetrominoes) to complete full rows, which are then cleared. The game ends when the blocks stack up to the top of the screen. It is built using the Python Pygame library for graphical rendering and gameplay mechanics.

Features

  • Block Rotation: Supports rotating tetrominoes to fit them into place.
  • Score System: Players earn points by clearing rows, with a high score tracker.
  • Difficulty Increase: The game speed increases as the player scores more points.
  • Responsive Controls: Players can control tetrominoes using arrow keys for left, right, down, and rotation.

How to Play

  1. Start the game by pressing ENTER after the welcome screen.
  2. Use the arrow keys to move the tetrominoes:
    • Left Arrow: Move tetromino left
    • Right Arrow: Move tetromino right
    • Down Arrow: Speed up falling of the tetromino
    • Up Arrow: Rotate tetromino
  3. Your goal is to complete full horizontal lines to clear them from the grid.
  4. The game ends when the tetrominoes stack up to the top of the screen.

Installation

To play the game on your machine, follow the steps below:

  1. Clone the repository:
    git clone https://github.com/your-username/tetris-game.git
  2. Install required dependencies:
    pip install pygame
  3. Run the game:
    python tetris_game.py

Conclusion The Tetris game provides a fun and engaging challenge for players of all skill levels. With its simple controls and increasing difficulty, it offers endless entertainment and a great way to practice strategic thinking and spatial awareness. Whether you're a casual player or a competitive gamer, this classic game will keep you entertained for hours. Feel free to fork the repository, add features, or contribute to improving the gameplay experience. Happy gaming!