Skip to content

sarthaknimbalkar/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game using Pygame

This repository contains a simple implementation of the classic Tetris game using the Pygame library in Python. The game offers an interactive and enjoyable gaming experience with colorful blocks and smooth gameplay.

Features

  • Classic Tetris Gameplay: Experience the timeless fun of arranging falling blocks to create complete lines.

  • Controls: Use the arrow keys to move the falling blocks left, right, and down. Press the up arrow key to rotate the blocks.

  • Scoring: Earn points by completing lines. The more lines you clear simultaneously, the higher your score.

  • Speed Increase: The game progressively increases in speed, providing a challenging and exciting experience.

Prerequisites

Before running the game, ensure you have the following installed:

  • Python 3.x: Download Python

  • Pygame Library: Install using pip [ pygame==2.5.0 used ]

    pip install pygame
    

How to Run

  1. Clone the repository:

    git clone https://github.com/sarthaknimbalkar/Tetris.git
    
  2. Navigate to the project directory:

    cd Tetris
    
  3. Run the game:

    python main.py
    
  4. Enjoy playing Tetris!

Controls

  • Left Arrow: Move the falling block left.

  • Right Arrow: Move the falling block right.

  • Down Arrow: Move the falling block down faster.

  • Up Arrow: Rotate the falling block.

Contributions

Contributions to the project are welcome. If you find any issues or have suggestions for improvements, feel free to create an issue or submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages