Skip to content

Latest commit

 

History

History
61 lines (43 loc) · 1.1 KB

File metadata and controls

61 lines (43 loc) · 1.1 KB

Tetris Game

A simple and fun implementation of the classic Tetris game using Python and Pygame.

Created by tbigmac for recreational purposes.

Game Features

  • Classic Tetris gameplay mechanics
  • Score tracking with high score persistence
  • Level progression system
  • Piece hold functionality
  • Next piece preview
  • Clean and minimalist UI

Repository Structure

Tetrisv2/
├── game.py         # Main game implementation
├── highscore.json  # Persistent storage for high scores
└── README.md       # This file

Requirements

  • Python 3.x
  • Pygame library

Installation

  1. Make sure you have Python 3.x installed on your system
  2. Install Pygame using pip:
    pip install pygame

How to Run

Navigate to the game directory and run:

python3 game.py

Controls

  • ← → : Move piece left/right
  • ↑ : Rotate piece
  • ↓ : Soft drop
  • Space : Hard drop
  • C : Hold piece
  • P : Pause game
  • R : Restart game

License

This project is created for recreational purposes only. Feel free to use and modify as you wish.

Credits

Created by tbigmac