Shanten: Difference between revisions

Jump to navigation Jump to search
m
Line 39: Line 39:
Accurate shanten uses the maximum formula, and then includes the conditions for seven pairs and kokushi musou.
Accurate shanten uses the maximum formula, and then includes the conditions for seven pairs and kokushi musou.


''accurateShanten'' = min(8 - 2 * ''groups'' - max(''pairs'' + ''taatsu'', floor(''hand.length''/3)-''groups'') - min(1, max(0, ''pairs'' + ''taatsu'' - (4 - ''groups''))), 6 - ''pairs'', 13 - ''diffTerminals'' - max(''terminalPairs'', 1)).
''accurateShanten'' = min(8 - 2 * ''groups'' - max(''pairs'' + ''taatsu'', floor(''hand.length''/3)-''groups'') - min(1, max(0, ''pairs'' + ''taatsu'' - (4 - ''groups''))), 6 - ''pairs'', 13 - ''diffTerminals'' - max(''terminalPairs'', 1)).


=== Accurate correction (perfect shanten) ===
=== Accurate correction (perfect shanten) ===
10,011

edits

Navigation menu