Jimboom7 / AlphaJong

A Mahjong AI for Mahjong Soul
GNU General Public License v3.0
395 stars 56 forks source link

fix Chanta and Junchan yaku miscalculation #79

Closed xkwang91 closed 2 years ago

xkwang91 commented 2 years ago

There is a mistake in current Chanta and Junchan yaku calculation. Sequences like 78999p appear among triples, sequences and pairs. When it happens, there will be 5 triples and sequences and 1 pairs, which misleads current Chanta and Junchan yaku calculation. In my patch, by checking the sequences' length, we can make sure there is no illegal sequences.

Jimboom7 commented 2 years ago

Thank you very much, this is a great solution!