Skip to content

tommanzur/pytetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Tetris Game

Overview

This repository contains a simple implementation of the classic Tetris game using Python and Pygame. The game includes various Tetris blocks, levels, and a scoring system. Feel free to use and modify this code for learning purposes or as a starting point for your own game projects.

Table of Contents

Installation

  1. Make sure you have Python installed on your machine. You can download it from python.org.

  2. Clone the repository to your local machine:

    git clone https://github.com/your-username/tetris-game.git
  3. Navigate to the project directory:

    cd tetris-game
  4. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the Tetris game by executing the following command:

python tetris.py

Controls

  • Left Arrow: Move block left
  • Right Arrow: Move block right
  • Down Arrow: Move block down (faster)
  • Up Arrow: Rotate block
  • P: Pause/unpause the game

Features

  • Classic Tetris gameplay with different block shapes.
  • Levels and scoring system.
  • Pause functionality.
  • Game over screen.

Contributing

Contributions are welcome! If you find any issues or have ideas for improvements, feel free to open an issue or submit a pull request.

About

Testris game developed with pygame

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages