Play Mahjong

Mahjong Solitaire Blog

When to use Shuffle in Mahjong Solitaire

Save Shuffle for late in the game. In our test, one shuffle pressed with 30 tiles left cleared 93.4% of boards, while the same shuffle pressed with 100 tiles left cleared only 61.2%. With the three shuffles our game gives you, the best plan was the simplest one: press Shuffle only when the game tells you there are no matching pairs left.

This post shows the numbers and two real games that explain them. For the rest of the habits that win games, see our Mahjong Solitaire strategy guide. Or try it yourself and play Mahjong now.

What does Shuffle do in our game?

The Shuffle button sits in the bar under the board, with a number showing how many you have left. Every game starts with 3. You can also press S on a keyboard.

A shuffle keeps every tile where it is and deals the faces again. The shape of the board doesn’t change, only which picture sits where. Our game uses the same dealer it uses for a new game, so after a shuffle the board can still be cleared, and you’ll see the message “Tiles shuffled. The board can still be cleared.”

When you run out of moves, the game opens a box titled No matching pairs left, with three buttons: Shuffle (showing how many you have left), Undo and New game.

How did we test it?

We took the game engine straight from our layout pages and had a computer play the same 200 deals on each of our 24 layouts under seven different shuffle plans: 33,600 games in all. The computer chose every move the way our Hint button does, taking the pair that frees the most tiles, and never used Undo. Each shuffle worked exactly like the Shuffle button. A game counted as cleared if all 144 tiles came off.

When is the best time to shuffle?

Late. Here is how often each plan cleared the board:

PlanAll 24 layoutsTurtle
No shuffles37.6%42.0%
One shuffle at 100 tiles left61.2%65.5%
One shuffle at 60 tiles left84.8%90.0%
One shuffle at 30 tiles left93.4%98.0%
One shuffle, kept until you’re stuck90.1%92.5%
All three early (120, 100 and 80 left)73.1%73.5%
All three, each kept until you’re stuck95.3%94.0%

Without any shuffles, the computer cleared 37.6% of boards. One shuffle changed that a lot, but how much depended entirely on when it was used. Pressed at 100 tiles left it lifted the clear rate to 61.2%. Pressed at 30 tiles left it lifted it to 93.4%.

The same pattern held with all three. Using them early, at 120, 100 and 80 tiles left, cleared 73.1% of boards. Keeping them until the game was stuck cleared 95.3%, the best of any plan we tried.

Why is an early shuffle wasted?

Because the problem it fixes hasn’t happened yet.

At the start, every board on our site can be cleared, and with 100 tiles left there are still plenty of free tiles to choose from. Shuffling then doesn’t rescue anything. It just deals you a different board that can be cleared, and you can still get stuck on it later, often with no shuffles left.

Late in the game it is the other way round. When you get stuck with few tiles left, the faces you need are buried under other tiles, as in the example below. A shuffle deals them again, and there are few moves left for anything else to go wrong.

What does a good shuffle look like?

Here is a real game from the test: the classic Turtle, deal 1. The computer got stuck with 12 tiles left.

Twelve tiles left in a Turtle game. Before the shuffle six free tiles show 8 of dots, 4 of bamboo, a spring season, 5 of dots, 3 of characters and 4 of dots, with no pair. After the shuffle the same six spots show three pairs: 3 of characters, 4 of dots and 8 of dots.
Turtle, deal 1, stuck with 12 tiles left. Gold outlines show free tiles. After one Shuffle the same six spots hold three pairs.

Six tiles were free: the 8 of dots, 4 of bamboo, spring, 5 of dots, 3 of characters and 4 of dots. Not one of them had a free partner. Every partner was underneath another tile.

One shuffle dealt the same 12 spots again. The six free spots now held three pairs, the 3 of characters, the 4 of dots and the 8 of dots, and the computer cleared the board from there.

That is the ideal shuffle: few tiles left, and the only thing wrong is which faces are buried.

When can’t Shuffle save you?

When the problem is the shape, not the faces. This is Turtle deal 32, stuck with just 2 tiles left:

The last two tiles of a Turtle game, both 5 of bamboo, stacked one on top of the other
Turtle, deal 32. The last pair is stacked, so no shuffle can help.

The last two tiles are a matching pair, the 5 of bamboo, but one sits directly on top of the other. Only the top one is free, so they can never be taken together. A shuffle can change faces, not positions, so the game shows “Those tiles cannot be rearranged into a solvable board. Try Undo.”

This happened more than you might expect. When the computer kept all three shuffles for when it was stuck, 227 of its 4,800 games still ended like this, every one with 2, 4 or 6 tiles left. We checked each of those shapes by trying every possible order of moves, and none could be cleared.

The way to avoid it is to watch the last few stacks. When you are down to a handful of tiles, don’t take a pair if it leaves two tiles stacked on each other with nothing else to pair with. If you are already there, Undo is the only fix.

Should you shuffle at 30 tiles, or wait until you’re stuck?

With one shuffle, pressing it at 30 tiles left did a little better than waiting: 93.4% against 90.1%. Waiting can leave it too late, as in the deal 32 example above. It was better on 19 of the 24 layouts. On four hard ones, Fortress, Arrow, Stairs and Temple, waiting did better.

With the three shuffles you actually get, waiting won: 95.3%. You have enough of them that keeping them for when you need them is the safest plan.

So in a normal game on our site, don’t press Shuffle while you still have moves. Let the No matching pairs left box tell you when.

Which habits should you practise?

  • Don’t press Shuffle while you still have a move. Early shuffles were the weakest plan we tested.
  • When the No matching pairs left box appears, try Undo first if the last few moves were careless. A shuffle wipes your Undo history.
  • Count your shuffles. The number on the button is your safety net. Keep at least one for the last 30 tiles.
  • Watch the last stacks. With 10 tiles or fewer left, check that no two tiles end up stacked with nothing else to pair with.
  • Look before you match. Most stuck boards start with a pair taken while its partners were buried, as we explain in Why you keep getting stuck in Mahjong Solitaire.

Want to put it into practice? Play Mahjong now on the classic Turtle, where one late shuffle took our computer player from 42.0% to 98.0%.

Questions people ask

How many shuffles do you get?

Three in every game on this site, shown as the number on the Shuffle button. You also get 5 hints and unlimited Undo.

Can a shuffle make the board impossible?

No. Shuffle deals the tiles that are left again with the same dealer that builds every new game, so the new board can still be cleared. If the shape left can't be cleared whatever the faces, the game says so ("Those tiles cannot be rearranged into a solvable board. Try Undo.") and doesn't use up your shuffle.

Can you undo a shuffle?

No. A shuffle starts a fresh history, so Undo only takes back moves made since the last shuffle. That is one more reason not to shuffle while you still have moves to make.

Play Mahjong now

See all posts