- Speed up performance a bit
- Add support for Python 3.9
- Add japanese yaku names
- Fix an issue with not correct ryuuiisou detection
- Allow to print aka dora in TilesConverter.to_one_line_string() method ("0" symbol)
- Add support for Python 3.8
- Add TilesConverter.one_line_string_to_136_array() and TilesConverter.one_line_string_to_34_array() methods
- Fix an issue with incorrect daburu chuuren poutou calculations
- Allow passing '0' as a red five to tiles converter
- Introduce OptionalRules hand configuration
- Fix a bug when hatsu yaku was added to the hand instead of chun
- Fix a bug where kokushi wasn't combined with tenhou/renhou/chihou
- Add English names to all yaku
- Add support of python 2.7
- Add a way to pass aka dora to tile converter
- Allow to disable chiitoitsu or kokushi in shanten calculator
- Add is_terminal() and is_dora_indicator_for_terminal() functions to the utils.py
- Add is_tile_strictly_isolated() function to the utils.py
- Add settings for different kazoe yakuman calculation (it kan be an yakuman or a sanbaiman)
- Support up to sextuple yakuman scores
- Support kiriage mangan
- Allow to disable +2 fu in open hand
- Allow to disable tsumo pinfu (add 2 additional fu for hand like that)
- Fix a bug with not correct agari state determination and closed kan in the hand
Breaking changes:
- Interface of hand calculator was changed. New interface will allow to easy support different game rules
Additional fixes:
- Refactor hand divider. Allow to pass melds objects instead of arrays
- Add file with usage examples
- Minor project refactoring
- Improve installation script
Bug fixes:
- Fix refactoring regressions with kan sets and dora calculations
- Fix regression with sankantsusuukantsu and called chankan
- Closed kan can't be used in chuuren poutou
- Fix yaku ids (some of them had incorrect numbers)
Features:
- Allow to disable double yakuman (like suuanko tanki)
- Remove float calculations from scores and fu
- Add travis build status
- Add usage examples to the readme
- Hand calculation code was moved from mahjong bot package https://github.com/MahjongRepository/tenhou-python-bot
- This library can calculate hand cost (han, fu with details, yaku and scores) for riichi mahjong (japanese version)