High-performance Mahjong winning-hand detection & AI discard algorithm based on lookup tables.