Skip to content

This Tetramino game is a project inspired by "Gagne ton papa" for the INFO-F106 course at ULB. It is a console-based game where players can place tetraminos on a grid to win the game.

Notifications You must be signed in to change notification settings

amineflex/tetramino-py

Repository files navigation

tetramino.py

Overview

This Tetramino game is a project inspired by "Gagne ton papa" for the INFO-F106 course at ULB. It is a console-based game where players can place tetraminos on a grid to win the game.

Table of Contents

Features

  • Stylish console-based Tetramino game.
  • Move tetraminos, rotate them, and place them on the grid.
  • Win the game by correctly placing all tetraminos on the grid.

Getting Started

  1. Clone the repository:
git clone https://github.com/amineflex/tetramino-py.git
cd tetramino-py
  1. Run the game:
python3 tetramino_game.py <carte_1.txt>
# You can select the card already present in the file or create one

Replace <carte_1.txt> with the path to your card file.

Game Rules

  • To win the game, place all the tetraminos on the grid.
  • Use the numbers '1' to '8' to select a tetramino.
  • Move a tetramino using the keys 'i', 'j', 'k', 'l'.
  • Rotate a tetramino using the keys 'u' and 'o'.
  • Validate a move by pressing 'v'.
  • To quit the game, press 'q'.

Usage

Follow the Getting Started section to set up and run the Tetramino game.

Contributing

Contributions are welcome! If you find any issues or have suggestions, please open an issue or create a pull request.

Infos

This game is made after a project for my school work! Feel free to try it, copy it or modify it as you like!

About

This Tetramino game is a project inspired by "Gagne ton papa" for the INFO-F106 course at ULB. It is a console-based game where players can place tetraminos on a grid to win the game.

Topics

Resources

Stars

Watchers

Forks

Languages