A PettingZoo AECEnv implementation of the Fanorona board game.
Project description
Fanorona AEC Environment
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 $44$ moves end in a draw has been implemented, since the original rules do not have explicit draw conditions.
Installation
Using pip (recommended)
pip install fanorona-aec
Local
git clone https://github.com/AbhijeetKrishnan/fanorona-aec.git
cd fanorona-aec
pip install -e .
Usage
Setting up a basic environment
In a Python shell, run the following:
import fanorona_aec
env = fanorona_v1.env()
See demo.py
for a script that implements a simple random policy to interact with the environment.
Testing
We use pytest for tests. You can run them via:
git clone https://github.com/AbhijeetKrishnan/fanorona-aec.git
cd fanorona-aec
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fanorona-aec-2.0.0.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for fanorona_aec-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c485e6be725bf456e539f538c21b1e04f9790fb467a190e5d8416bb439f1d66 |
|
MD5 | 61483fa277666c43d3af1e9825e402ab |
|
BLAKE2b-256 | 44a7b0fe1e46c4621d24a81c7cd0024555b009b960ffa86b7baab52bf7d1aab6 |