Skip to main content

DOUBUTSUSHOGI

Open in Streamlit

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
# 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.

Release files for doubutsushogi 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doubutsushogi 0.0.5
File Size Uploaded
doubutsushogi-0.0.5.tar.gz 109.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for doubutsushogi 0.0.5
File Interpreter ABI Platform
doubutsushogi-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size:222.4 kB

Release files / doubutsushogi-0.0.5.tar.gz

Download URL doubutsushogi-0.0.5.tar.gz
Size 109.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3a230dca5572cb5470eebe1126f46f2e7c2149f98766e890567d3ff6a916c0e3
BLAKE2b-256 checksum
How to use checksums
7c95f699ee8b1c93391e32e6d752f7d60fbc1716702bf6d7ebb8daeca5e6450d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / doubutsushogi-0.0.5-py3-none-any.whl

Download URL doubutsushogi-0.0.5-py3-none-any.whl
Size 112.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5e9912c2c4a71581268be3ec1bf7f9517f402de3b383425d0f74b70b3b0fe73
BLAKE2b-256 checksum
How to use checksums
e98398740100f0de64f6de98d2583e810db3d08e6d8ca1fb1f78be76202fd732
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page