Skip to main content

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.

Source Distribution

baghchal-1.0.1.tar.gz (35.8 kB view details)

Uploaded Source

Built Distribution

baghchal-1.0.1-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

Details for the file baghchal-1.0.1.tar.gz.

File metadata

  • Download URL: baghchal-1.0.1.tar.gz
  • Upload date:
  • Size: 35.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for baghchal-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ba346c8b0e84f11a070111cb4e4eda2a18809e6b2aec805f698bf53dcc157644
MD5 bfd9b77ea4fda1d5e76fa97a29a9c9f2
BLAKE2b-256 711e3fced738db544987fac89129fff5b6347629f42c92b4b275cdbd361355af

See more details on using hashes here.

File details

Details for the file baghchal-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: baghchal-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

File hashes

Hashes for baghchal-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62235dd6ac1ef536235684914d5532860980fd049dff957ebda6feada37d4480
MD5 85548ca027224b4dea9d8b0a9fdf3aa0
BLAKE2b-256 b491535900627e83c7cdae30015a259aba034e348ec5b03eabbe1aa799431aca

See more details on using hashes here.

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