Skip to main content

A PettingZoo AECEnv implementation of the Fanorona board game.

Project description

Fanorona AEC Environment

PyPI v2.0.0 License: MIT Code style: black

Fanorona board

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 details)

Uploaded Source

Built Distribution

fanorona_aec-2.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for fanorona-aec-2.0.0.tar.gz
Algorithm Hash digest
SHA256 db41502c7941f770d418dc850ab97323be28d04b44e4e38daeb93de3048373c0
MD5 41f69c7cfb9a0065715234cd72c2adcc
BLAKE2b-256 1d800c8dc96a37375116c010694ffdab4675c4285fa542ee9231eddb0020690d

See more details on using hashes here.

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

Hashes for fanorona_aec-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c485e6be725bf456e539f538c21b1e04f9790fb467a190e5d8416bb439f1d66
MD5 61483fa277666c43d3af1e9825e402ab
BLAKE2b-256 44a7b0fe1e46c4621d24a81c7cd0024555b009b960ffa86b7baab52bf7d1aab6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page