Skip to main content

Mancala written in Python, playable in CLI (GUI coming soon)!

Project description

Mancala

Mancala board game written in python.

img

Features & Road maps

  • Mancala playable on CLI
  • Cmpatible with the gym API
  • Can train RL agents
  • Mancala playable on GUI

Installation

$ pip install mancala

Usage

Play a game with agents

$ mancala play --player0 human --player1 random

Compare each agents and plot their win rates

$ mancala arena --num_games 200
           p0_random  p0_exact  p0_max
p1_random       41.0      10.0     5.0
p1_exact        81.5      37.5    27.5
p1_max          93.5      51.5    37.0

Algorithms

Mancala is a game with perfect information. マンカラは完全情報ゲームです。

Value Iteration

Using Dynamic Programming (DP), calculate value for states and memorize them. Use the value to plan future actions.

Other implementations

Policy Iteration

Using Dynamic Programming (DP), calculate value for states and memorize them. Use the value and policy for planning.

References

Multi agent RL

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

mancala-0.2.0.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

mancala-0.2.0-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

Supported by

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