![]() estimate_hand_value ( tiles, win_tile ) print ( result. string_to_136_array ( sou = '4' ) result = calculator. Let’s calculate how much will cost this hand: Tanyao hand by ron from mahjong.hand_calculating.hand import HandCalculator from mahjong.tile import TilesConverter from mahjong.hand_calculating.hand_config import HandConfig from ld import Meld calculator = HandCalculator () # we had to use all 14 tiles in that array tiles = TilesConverter. Project repository: How to install pip install mahjong How to use Right now it supports only japanese version (riichi mahjong). So, we can say that our own hand calculator works the same way that hand calculation. The code was validated on phoenix replays in total on 11,120,125 hands. Settings for different kazoe yakuman calculation (it kan be an yakuman or a sanbaiman)Īllow to disable additional +2 fu in open hand (you can make 1-20 hand with that setting) This library can calculate hand cost (han, fu with details, yaku and scores) for riichi mahjong (japanese version).ĭisable or enable double yakuman (like suuanko tanki)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |