Skip to content
/ Tetris Public

Trabajo Práctico de la materia Algoritmos y Programación I (95.14)

License

Notifications You must be signed in to change notification settings

SebaB29/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris Game 🎮

Welcome to Tetris, a classic puzzle game where you arrange falling blocks to clear lines and score points. This project is an implementation of the iconic game in Python, developed using object-oriented programming principles.

📜 Table of Contents

🕹️ Features

  • Classic Tetris gameplay
  • Random piece generation from a predefined set
  • Score system with database storage
  • Graphical interface with intuitive controls

🚀 Installation

To run this project locally, follow these steps:

  1. Clone the repository:

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

    cd Tetris
  3. Run the game:

    python main.py

🎮 Usage

Use the following controls to play the game:

  • A: Move left
  • D: Move right
  • W: Rotate piece
  • S: Drop piece quickly
  • P: Pause

📽️ Demo

Gif DEMO Tetris

📁 File Structure

The project structure is as follows:

Tetris/
├── graphics/
│   ├── gamelib.py
│   └── tetris_gui.py
├── img/
│   └── TetrisDemo.gif
├── resources/
│   └── piezas.txt
├── src/
│   ├── constantes.py
│   ├── generador_pieza.py
│   ├── pieza.py
│   ├── sistema_puntaje.py
│   ├── tablero.py
│   └── tetris.py
├── main.py
├── README.md
├── LICENSE
└── .gitignore
  • graphics/: Contains graphical libraries for rendering the game.
  • img/: Includes a demo GIF showcasing the game's functionality.
  • resources/: Contains the pieces configuration file (piezas.txt).
  • src/: Includes source code files responsible for various game functionalities.
  • main.py: The entry point of the application.

🛠️ Technologies

This project is built with:

  • Python
  • SQLite3 (for score management)
  • Gamelib (A library created by the instructor to facilitate the use of threads and rendering for the interface)

🤝 Contributing

Contributions are welcome! If you'd like to improve the game, feel free to fork the repository and submit a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

📄 License

Distributed under the MIT License. See LICENSE for more information.

📚 About This Project

This project was developed as a practical assignment for university. It aims to implement the classic Tetris game using Python, focusing on game logic, graphical interface, and data management through object-oriented programming principles.

About

Trabajo Práctico de la materia Algoritmos y Programación I (95.14)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages