MahjongRepository/mahjong
About
Implementation of riichi mahjong related stuff (hand cost, shanten, agari end, etc.)
Games & EmulationMeasured star growth
- in 24h
- 0
- in 7 days
- +2
- in 15 days
- +3
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalmahjong
Japanese riichi mahjong hand calculator library.
Compute hand cost (han, fu, yaku, and scores), validate winning hands, and calculate shanten (minimum tiles to tenpai).
The code was validated on tenhou.net phoenix replays: 26,148,050 four-player and 8,406,421 three-player winning hands.
So, we can say that our hand calculator works the same way that tenhou.net hand calculation.
Documentation
- API reference
- Wiki — Supported rules and usage examples
How to install
pip install mahjong
Contributing
For guidance on setting up a development environment and contributing to mahjong, see Contributing to mahjong.
License
This library is licensed under the MIT license.
Explore related projects
Loading…