Skip to content

Tetris is a tile-matching video game where players rotate and arrange falling geometric shapes, called tetrominoes, to form complete, gapless horizontal lines within a rectangular playing field. When a line is formed, it disappears, and the blocks above fall down, allowing the player to score points and continue playing.

Notifications You must be signed in to change notification settings

csivitu/Tetris-Pygames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game

This is a recreation of the classic Tetris game, built from scratch using Python and the Pygame library.

Features

  • Classic Gameplay: Authentic Tetris experience with falling blocks and line-clearing mechanics.

  • Scoring System: Tracks your score based on lines cleared.

  • Block Physics: Accurate collision detection and block placement on the game grid.

  • User Controls: Intuitive controls for moving and rotating blocks.

Getting Started

To run this project locally, you will need to have Python and the Pygame library installed on your machine.

Prerequisites

  • Python 3.8+

  • Pygame library

Installation

  1. Clone this repository to your local machine
  2. Navigate into the project directory.
  3. Install Pygame using pip. It's recommended to use the Pygame Community Edition (Pygame-CE).

Running the Game

After installing the prerequisites, you can run the game by executing the main Python file.

Usage

  • Move Left: Left Arrow Key

  • Move Right: Right Arrow Key

  • Rotate Block: Up Arrow Key

  • Soft Drop (faster fall): Down Arrow Key

  • Hard Drop (instant fall): Spacebar

License

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

About

Tetris is a tile-matching video game where players rotate and arrange falling geometric shapes, called tetrominoes, to form complete, gapless horizontal lines within a rectangular playing field. When a line is formed, it disappears, and the blocks above fall down, allowing the player to score points and continue playing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages