MahjongRepository Mahjong Versions Save

Implementation of riichi mahjong related stuff (hand cost, shanten, agari end, etc.)

v1.1.4

5 years ago

Add is_terminal() and is_dora_indicator_for_terminal() functions to the utils.py

v1.1.3

5 years ago
  • Add is_tile_strictly_isolated() function to the utils.py

v1.1.2

6 years ago
  • 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)

v1.1.1

6 years ago
  • Fix a bug with not correct agari state determination and closed kan in the hand

v1.1.0

6 years ago

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

v1.0.5

6 years ago

Improve installation script

v1.0.4

6 years ago

Bug fixes:

  • Fix refactoring regressions with kan sets and dora calculations
  • Fix regression with sankantsu\suukantsu 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

v1.0.3

6 years ago

Mahjong hand calculation. It supports Japanese version (riichi mahjong) and allows to calculate han, fu and scores.

It supports features like:

  • Disable\enable aka dora in the hand
  • Disable\enable open tanyao yaku