Mahjong Algorithms A collection of powerful mahjong algorithms. Features Calculate the shanten number (deficiency number). Calculate necessary/unnecessary tiles (missing/redundant tiles). Calculate winning hand scores. Predict other player's waits.