baghchal
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.
Metadata
Release files for baghchal 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| baghchal-1.0.1.tar.gz | 35.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| baghchal-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.5 kB
Release files / baghchal-1.0.1.tar.gz
| Download URL | baghchal-1.0.1.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba346c8b0e84f11a070111cb4e4eda2a18809e6b2aec805f698bf53dcc157644
|
|
BLAKE2b-256 checksum How to use checksums |
711e3fced738db544987fac89129fff5b6347629f42c92b4b275cdbd361355af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / baghchal-1.0.1-py3-none-any.whl
| Download URL | baghchal-1.0.1-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62235dd6ac1ef536235684914d5532860980fd049dff957ebda6feada37d4480
|
|
BLAKE2b-256 checksum How to use checksums |
b491535900627e83c7cdae30015a259aba034e348ec5b03eabbe1aa799431aca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|