Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

baghchal is a pure Python Bagh Chal library that supports game import, move generation, move validation and board image rendering. It also comes with a simple engine based on minimax algorithm and alpha-beta pruning.

Project description

baghchal

Build Status Documentation Status MIT License

baghchal is a pure Python Bagh Chal library that supports game import, move generation, move validation and board image rendering. It also comes with a simple engine based on minimax algorithm and alpha-beta pruning.

Installation

baghchal runs on python 3 . You can now install it directly from PyPI via pip:

	pip install baghchal

System requirements are numpy and Pillow.

Source Code

The source code can be found here.

Documentation

The baghchal package has 3 sub-modules:

  • baghchal.env ( Consists of all classes and functions defining the game environment )

    • baghchal.env.Board (Board class representing BaghChal board)
    • baghchal.env.Bagh (Bagh class representing Bagh Player)
    • baghchal.env.Goat (Goat class representing Goat Player)
  • baghchal.lookup_table ( Lookup values for baghchal.env )

  • baghchal.engine ( Simple engine based on minimax algorithm and alpha-beta pruning )

    • baghchal.engine.Engine

More detailed documentation for baghchal library is available here.

License

baghchal is licensed under MIT License . Check out LICENSE.txt for the full text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for baghchal, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size baghchal-1.0.1-py3-none-any.whl (35.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size baghchal-1.0.1.tar.gz (35.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page