/pentomino-cover-game

A python game where you have to cover a grid with pentominoes.

Primary LanguagePython

Pentomino covering game

In this game you have to cover the grid with pentominoes. It is inspired by http://oeis.org/A214294.

Screenshot of the game

It is written in Python 2.x using Tkinter as GUI toolkit. The game structure is very flexible: you can "easily" code different polyominos (but for the moment you must specify the coordinates of every cell, for every rotation).

Dependencies

You can find Tkinter in the python-tk package on ubuntu-like systems. To install it, type:

sudo apt-get install python-tk

Usage

To launch the game, type:

python game.py

Keyboard controls

  • Restart the game: "R" key
  • Rotate pentomino: left/right arrow keys (or Mousewheel scroll)
  • Remove the last pentomino inserted: Backspace key
  • Select a pentomino to be removed: Spacebar key