paxyqi / mahjong

日麻何切?根据向听数帮助计算!
https://paxyqi.github.io/mahjong/
6 stars 1 forks source link

Got Incorrect Syanten Result #6

Closed Jasonxia007 closed 2 years ago

Jasonxia007 commented 2 years ago

input: 6777888p2367s11z got result: 3向聴 should be: 1向聴 in this case, draw 1/4/5/8s then discard 6p gets a Ready Hand/ richii.

paxyqi commented 2 years ago

Thank you for your report, I`ll check it.

paxyqi commented 2 years ago

This bug will happen when the input looks like 6777888. Because I calculate the tatsu first, like calculate the 678 as a tatsu, then the 77&88will be left, but not calculate the 777&888 as two mentsu. I`ll fix it soon.

paxyqi commented 2 years ago

Fix it, plz try. Thank you for your report again.