Doubutsu shogi AI
Project description
DOUBUTSUSHOGI
A doubutsushogi (animal chess) analyzer.
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
# positive value indicates that the first player is winning,
# negative the second player,
# and zero means a tie.
evaluate_states([s])
#[-4612]
Launch streamlit app
An interactive app is deployed on the Streamlit Cloud. To run the app on the computer locally, run the following:
pip3 install -U streamlit-doubutsushogi
python3 -m streamlit run streamlit/app.py
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.1.tar.gz
(109.4 kB
view hashes)
Built Distribution
doubutsushogi-0.0.1-py3-none-any.whl
(112.3 kB
view hashes)
Close
Hashes for doubutsushogi-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e04a3d883f8e7ec823c88e6b5efec9829abd28937515201621f17413914f398 |
|
MD5 | c2e107b7ee728084d220bb6f3ec5bf6c |
|
BLAKE2b-256 | fe323678d13487cc790a91a5157d7585cf1d204df534242d15bdad1a4090bb75 |