Mahjong Solitaire Game / Mahjong Solitaire strategy

Mahjong Solitaire strategy

The most useful piece of Mahjong Solitaire strategy is also the simplest: when several pairs are open, take the one that frees the most new tiles. We measured it. On 300 solvable Turtle deals, a program that matched open pairs at random cleared 120 boards on its first attempt. The same program choosing the pair that opened the most tiles cleared 146. On the smaller layouts the gap was wider. The figures are below, followed by the habits that explain them. To try them, open the Mahjong Solitaire game.

What we measured

The program plays a whole deal without undo, hint or shuffle and stops when no pair is open. "Random" takes any open pair. "Open the most" counts the free tiles each candidate pair would leave and takes the highest. Each layout was tested on 300 deals from this site, which are built to be solvable.

Layout Tiles Random matching cleared "Open the most" cleared Cleared within 30 attempts
Turtle 144 120 of 300 146 of 300 293 of 300
Pagoda 78 125 of 300 193 of 300 293 of 300
Twin Pillars 72 150 of 300 228 of 300 298 of 300

Two things follow. A solvable board is not an easy board: even with a sensible rule the program failed on roughly a quarter to a half of its first attempts. And one rule applied every move is worth a great deal, more than any clever trick applied now and then.

The last column is the program retrying the same deal up to 30 times. It is a floor, not a ceiling. Every one of these deals has a solution, because of how they are dealt.

Is every Mahjong Solitaire game winnable?

Not when the tiles are placed at random, which is how a physical set gets stacked. We dealt 300 Turtle boards with a plain shuffle and gave the program 30 attempts at each. It cleared 167. Random Pagoda boards were far worse: 23 of 300. Some of the rest may have solutions the program missed, but many do not, because two matching tiles can end up directly on top of each other or locked behind one another.

That is why this site does not shuffle the tiles onto the board. It starts with the full layout, repeatedly picks two tiles that are free at the same moment, gives them a matching pair of faces, and lifts them off. The order in which they were lifted is a solution. Shuffle uses the same method on whatever tiles are left.

Habits that raise your clear rate

Read what a tile is holding. Before matching, ask what each of the two tiles is covering or boxing in. Tap a shaded tile next to it if you are not sure; the rings show whether your tile is one of its blockers.

Start with the peak and the long rows. The top layers cover the most tiles, and a row of twelve can only be entered from its two ends. Tiles on short edges that block nothing are the lowest priority.

Count the copies. On Turtle each face appears four times. If you can see three free, you have a choice of pairs: take the two that open the most and remember that the fourth must come out later to pair with the one you left. If you can see all four free, take both pairs at once. They cannot be needed for anything else.

Do not strand a twin. If the two remaining copies of a face lie one on top of the other, or one boxes in the other, you need a different route to the lower one. This is the usual way a board dies, and it is easier to prevent than to fix.

Spend flowers and seasons with care. Any flower takes any flower, so with three flowers open you again get to choose which two leave.

Use the hint as a second opinion. The hint on this site applies the "open the most" rule. Compare it with what you were about to do.

Undo before you shuffle. A shuffle rearranges only the tiles that remain. Late in a deal there may be few places to put them, and in rare cases none that work. In 1,000 randomly played Turtle deals the program reached such a position 35 times. Going back three or four matches usually opens another line.

Choosing a layout

Twin Pillars is the most forgiving of the three in our figures and Turtle the least, mainly because Turtle has twice as many tiles and five layers. If you are learning how the free-tile rule works, the rules are set out on the how to play Mahjong Solitaire page.