MahjongRepository / tenhou-python-bot

Bot for tenhou.net riichi mahjong server written in Python
MIT License
201 stars 52 forks source link

Score logs should consider seat wind tiebreaker #38

Closed 0xrgb closed 7 years ago

0xrgb commented 7 years ago

From http://arcturus.su/wiki/Tenhou.net_rules

At the end of the game, if there is a tie, the tie is broken in favor of the person having the earlier dealership. 「終了時に同点の場合は東1局の風順で順位を決定」

It means that if you are oya in 東1 (East 1), you will always win when score is tie. (東>南>西>北)

Bot logs scores when each round is started, such as [A (30,300), B (24,900), C (22,900), D (21,900)]. It sorts players by scores. But when score is even (eg. 東1), it sorts players by player numbers. (0-3)

For consistency, it should sort players as,

  1. Score
  2. Place when East 1 started
Nihisil commented 7 years ago

Thanks for the report! It will be fixed in the next a couple of days

Nihisil commented 7 years ago

It was fixed in v0.3.1