1
edit
m (→Basic shanten) |
CringeExpert (talk | contribs) m (Corrected Kokushi shanten formula. Using max would mean a fully non-terminal hand is 12, and something like 1122334455667z is 0.) |
||
Line 88: | Line 88: | ||
The shanten for [[kokushi musou]] is 13, minus the number of unique terminals/honors, then minus 1 if you have at least one pair. This means a hand with no terminals/honors is 13-shanten from kokushi. | The shanten for [[kokushi musou]] is 13, minus the number of unique terminals/honors, then minus 1 if you have at least one pair. This means a hand with no terminals/honors is 13-shanten from kokushi. | ||
kokushiShanten = 13 - ''unique_terminals'' - | kokushiShanten = 13 - ''unique_terminals'' - min(''terminal_pairs'', 1) | ||
== Accurate shanten formula == | == Accurate shanten formula == | ||
Line 97: | Line 97: | ||
8 - (2 * ''groups'') - max(''pairs'' + ''taatsu'', 4 - ''groups'') - min(1, max(0, ''pairs'' + ''taatsu'' + ''groups'' - 4)) | 8 - (2 * ''groups'') - max(''pairs'' + ''taatsu'', 4 - ''groups'') - min(1, max(0, ''pairs'' + ''taatsu'' + ''groups'' - 4)) | ||
6 - ''pairs'' | 6 - ''pairs'' | ||
13 - ''diffTerminals'' - | 13 - ''diffTerminals'' - min(''terminalPairs'', 1) | ||
=== Accurate correction (perfect shanten) === | === Accurate correction (perfect shanten) === |
edit