MahjongRepository / mahjong

Implementation of riichi mahjong related stuff (hand cost, shanten, agari end, etc.)
MIT License
377 stars 38 forks source link

Problem of KokushiMusou #23

Closed op06072 closed 3 years ago

op06072 commented 3 years ago

In case of 'KokushiMusou', divider just return empty list. So 'fu' can't be calculated. So errors are printed when I run the first example in main page of this repo with 'Kokushi Musou Juusanmen Matchi'.

Nihisil commented 3 years ago

You don't have fu for kokushi hand (it is irregular hand) and because of that fu_details is None in hand results. You can check it on your side with simple if hand_result.fu_details.