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.1.tar.gz
(31.0 kB
view details)
Built Distribution
mahjong-1.2.1-py3-none-any.whl
(60.9 kB
view details)
File details
Details for the file mahjong-1.2.1.tar.gz
.
File metadata
- Download URL: mahjong-1.2.1.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afbef2f5fea656b73eacb6396176d1e80cd06123c24dbea27df87100e8502097 |
|
MD5 | ec7efb2acdd2cd1fb7ce33a6b343e6ab |
|
BLAKE2b-256 | 3a2aabe1de6018ff11852bbd2816ab58021d57f38d085c223b0da40809571136 |
File details
Details for the file mahjong-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: mahjong-1.2.1-py3-none-any.whl
- Upload date:
- Size: 60.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5df358127a73a26751f1f60635c65e02e6f363ce70339d3478c396301163277e |
|
MD5 | a3221c38410dd0c35a3c12e342ddac61 |
|
BLAKE2b-256 | e407a10f5470140412dc5c5ccc40a35842e18801f14ff3336367ec558b902b13 |