Doubutsu shogi AI
Project description
DOUBUTSUSHOGI
A doubutsushogi (animal chess) analyzer.
- This project uses the complete state values calculated in doubutsushogi-solve project.
- An interactive analyzer app is deployed on the Streamlit Cloud.
Install
# from pypi
pip3 install doubutsushogi
# or from github
git clone https://github.com/kota7/doubutsushogi-py.git
pip3 install -U ./doubutsushogi-py
Some usage
from doubutsushogi.game import State
# game state at the beginning
s = State.initial_state()
print(s)
# -------
# | k l z |
# | . h . |
# | . H . |
# | Z L K |
# -------
# H: 0 Z: 0 K: 0
# h: 0 z: 0 k: 0
# Player 1's turn
from doubutsushogi.evaluate import evaluate_states
# Numeric evalutation of the state
# The first run takes some time (typically a few minutes) to downloading database from https://github.com/kota7/doubutsushogi-solve/releases
evaluate_states([s])
#[-4612]
# Note: positive value indicates that the first player is winning,
# negative the second player,
# and zero means a tie.
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
doubutsushogi-0.0.5.tar.gz
(109.9 kB
view hashes)
Built Distribution
doubutsushogi-0.0.5-py3-none-any.whl
(112.6 kB
view hashes)
Close
Hashes for doubutsushogi-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e9912c2c4a71581268be3ec1bf7f9517f402de3b383425d0f74b70b3b0fe73 |
|
MD5 | 99312f833c0c835ccd6a788256550df1 |
|
BLAKE2b-256 | e98398740100f0de64f6de98d2583e810db3d08e6d8ca1fb1f78be76202fd732 |