Skip to content

Invalid score with local Yaku Renhou #20

@bossfan44

Description

@bossfan44

Hi,

I tested the Renhou branch via my web module (#19 (comment)).

First test :

  • Equivalent command => agari 11112345678999m --seat s
  • Result OK => "Double Yakuman" 26 han / 40 fu / 64000 points

Second test :

  • Equivalent command => agari 11112345678999m --seat s --local --renhou
  • Result KO => "Yakuman" 5 han / 40 fu / 32000 points

I think the result must be "Mangan" 5 han / 40 fu / 8000 points

And to solve the problem I see two options in function detect_yaku_with_context of yaku.rs :

  • simply move the is_yakuman affectation just after the Renhou lines (has_renhou...)
  • otherwise, in the beginning of the function, trying to push first the local yaku Renhou and don't try to add other yaku in the list

Best regards

BossFan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions