An open API service indexing awesome lists of open source software.

https://github.com/marmelab/pentago-python


https://github.com/marmelab/pentago-python

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# pentago-python

[Pentago](https://en.wikipedia.org/wiki/Pentago) game implementation in Python.

Definition and rules from Wikipedia :

> Pentago is a two-player abstract strategy game invented by Tomas Flodén. The Swedish company Mindtwister has the rights of developing and commercializing the product. The game is played on a 6×6 board divided into four 3×3 sub-boards (or quadrants). Taking turns, the two players place a marble of their color (either black or white) onto an unoccupied space on the board, and then rotate one of the sub-boards by 90 degrees either clockwise or anti-clockwise. A player wins by getting five of their marbles in a vertical, horizontal or diagonal row (either before or after the sub-board rotation in their move). If all 36 spaces on the board are occupied without a row of five being formed then the game is a draw."

## Prerequisite

- Docker is installed on your machine.

## Installation

- Clone this repo
- Run `make install` to install dependencies
- Run `make start` to start the game

## Test

- `make test` for running unit tests