MahjongRepository / tenhou-python-bot

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

Wrong detected active yaku #122

Closed Nihisil closed 4 years ago

Nihisil commented 4 years ago

Бот думает что у камичи якухай вместе с таньяо. Эти яку не совместимы и из-за этого у камичи считается дороже рука.

{
  "seat": 1,
  "threat_reason": {
    "id": "threatening_honitsu",
    "description": "Enemy opened hand has 3+ han",
    "melds": [
      {
        "type": "pon",
        "tiles_string": "111z",
        "tiles": [
          108,
          109,
          111
        ]
      },
      {
        "type": "chi",
        "tiles_string": "456s",
        "tiles": [
          84,
          90,
          95
        ]
      }
    ],
    "dora_count": 0,
    "melds_han": 4,
    "active_yaku": [
      {
        "id": "yakuhai"
      },
      {
        "id": "tanyao"
      },
      {
        "id": "honitsu",
        "chosen_suit": "is_sou"
      }
    ],
    "round_step": 8,
    "number_of_unverified_suji": 10,
    "suji_count_danger_border": 0,
    "assumed_hand_cost": 8000
  }
}

Воспроизвести:

python reproducer.py --log 2020102009gm-0009-0000-9b04a1ad --player NoName --wind 3 --honba 0 --tile 2s --action draw

image