Fanorona AEC Environment
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 $44$ moves end in a draw has been implemented, since the original rules do not have explicit draw conditions.
Installation
Using pip (recommended)
python -m pip install fanorona-aec
Local
git clone https://github.com/AbhijeetKrishnan/fanorona-aec.git
cd fanorona-aec
python -m pip install .
Usage
Setting up a basic environment
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.
Testing
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
Metadata
Release files for fanorona-aec 3.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fanorona-aec-3.0.2.tar.gz | 19.6 kB | Without provenance | Details for fanorona-aec-3.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fanorona_aec-3.0.2-py3-none-any.whl | Python 3 | none | any | Details for fanorona_aec-3.0.2-py3-none-any.whl |
Total release size: 36.0 kB
Release files / fanorona-aec-3.0.2.tar.gz
| Download URL | fanorona-aec-3.0.2.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ac851d673dd9d7271da18945c4fac5091c68ece16f590f05d18a3dbcf8e399a
|
|
BLAKE2b-256 checksum How to use checksums |
aa4380303d8956370d9d0534b6ba76a7cf77233b0093d67dbfb327729c244296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / fanorona_aec-3.0.2-py3-none-any.whl
| Download URL | fanorona_aec-3.0.2-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7671f4de2bd51bf12234c70db42c25929446dd65222b15d26d00e83737fbe2a4
|
|
BLAKE2b-256 checksum How to use checksums |
48c7513d5d697e3c7f363580ac23a51a72a9f7bce996a5d65add96be28ec743a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for fanorona-aec 3.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.