Shanten: Difference between revisions

m
Line 64: Line 64:


  ''accurateShanten'' = Smaller of:
  ''accurateShanten'' = Smaller of:
     * 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'' - max(''terminalPairs'', 1))
     * 13 - ''diffTerminals'' - max(''terminalPairs'', 1))
1,760

edits