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
Built Distribution
File details
Details for the file fanorona-aec-2.0.0.tar.gz
.
File metadata
- Download URL: fanorona-aec-2.0.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
db41502c7941f770d418dc850ab97323be28d04b44e4e38daeb93de3048373c0
|
|
MD5 |
41f69c7cfb9a0065715234cd72c2adcc
|
|
BLAKE2b-256 |
1d800c8dc96a37375116c010694ffdab4675c4285fa542ee9231eddb0020690d
|
File details
Details for the file fanorona_aec-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: fanorona_aec-2.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
0c485e6be725bf456e539f538c21b1e04f9790fb467a190e5d8416bb439f1d66
|
|
MD5 |
61483fa277666c43d3af1e9825e402ab
|
|
BLAKE2b-256 |
44a7b0fe1e46c4621d24a81c7cd0024555b009b960ffa86b7baab52bf7d1aab6
|