Mahjong hand solver

This algorithm finds the optimal grouping for a mahjong hand. An optimal grouping minimises ungrouped tiles, then minimises the number of pairs. The optimal grouping for a hand is not necessarily a winning one.

If the hand has 13 tiles, any tiles that could complete it are also shown.

Some special hands are also detected.

Loading... checker is 160KB, please be patient (if there is no change, try refreshing the page)

Try out these hands:

Notes:

Notes for nerds:

The strategies:

Version: none