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 45 moves end in a draw has been implemented, since the original rules do not have explicit draw conditions.
Installation
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 pettingzoo
import fanorona_aec
env = fanorona_v0.env()
Testing
We use pytest for tests. You can run them via:
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-1.0.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for fanorona_aec-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e34fa16333893f937b55936404c9d18115b03e776cde6cd0a77c3b94cacfd9 |
|
MD5 | db688693d9cb9e67c5a268257471e71c |
|
BLAKE2b-256 | 78485a1160005176abd51833131285598b6a6a899f1a9cfc06ee63f15266f36f |