Mahjong hands calculation
Project description
This library can calculate hand cost (han, fu with details, yaku, and scores) for riichi mahjong (Japanese version).
Also calculating of shanten is supported.
The code was validated on tenhou.net phoenix replays in total on 11,120,125 hands.
So, we can say that our hand calculator works the same way that tenhou.net hand calculation.
How to install
pip install mahjong
Supported rules and usage examples
You can find usage examples and information about all supported rules variations in the wiki
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mahjong-1.2.0.dev7.tar.gz
(32.9 kB
view hashes)
Built Distribution
Close
Hashes for mahjong-1.2.0.dev7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 783d747d0c02c639972643edc8805a41a6e870a2e20a3ed806760c914f114b0b |
|
MD5 | 8ed3cdec56c18e130718776cce044ccb |
|
BLAKE2b-256 | 2676119df37b7bcca0c312c4ada69be6c13c25cf4e2bf271dd4df7e46598f72f |