A B C D E F G H I
5 ●─●─●─●─●─●─●─●─●
│╲│╱│╲│╱│╲│╱│╲│╱│
4 ●─●─●─●─●─●─●─●─●
│╱│╲│╱│╲│╱│╲│╱│╲│
3 ●─○─●─.─○─.─○─●─○
│╲│╱│╲│╱│╲│╱│╲│╱│
2 ○─○─○─○─○─○─○─○─○
│╱│╲│╱│╲│╱│╲│╱│╲│
1 ○─○─○─○─○─○─○─○─○
W to play
Last capture: E3 E
Visited: D3, E3
Half-moves: 0
This is an implementation of the Fanorona board game as a PettingZoo AEC game.
The rules have been sourced from here.
An additional rule where games exceeding
python -m pip install fanorona-aec
git clone https://github.com/AbhijeetKrishnan/fanorona-aec.git
cd fanorona-aec
python -m pip install .
In a Python shell, run the following:
from fanorona_aec import fanorona_v3
env = fanorona_v3.env()
See demo.py
for a script that implements a simple random policy to interact with the environment.
We use pytest for tests. You can run them via:
git clone https://github.com/AbhijeetKrishnan/fanorona-aec.git
cd fanorona-aec
python -m pip install .[dev]
pytest