https://github.com/marmelab/pentago-python
https://github.com/marmelab/pentago-python
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marmelab/pentago-python
- Owner: marmelab
- License: mit
- Created: 2021-01-25T09:34:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-29T11:29:59.000Z (over 4 years ago)
- Last Synced: 2024-08-01T20:48:02.456Z (10 months ago)
- Language: Python
- Size: 91.8 KB
- Stars: 4
- Watchers: 11
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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