What Is Mahjong Solitaire?

Mahjong solitaire borrows the tiles of the four-player Chinese game Mahjong but none of its rules. The tiles are piled into a layered layout, and a single player removes them in matching pairs until the table is empty. The computer version traces back to Brodie Lockard's Mah-Jongg, written for the PLATO system in 1981, and Activision's Shanghai brought it to home computers in 1986 - which is why the game is still sometimes called Shanghai.

Everything is visible from the first move: there are no hidden cards and no dice. What turns it into a puzzle is the stacking. Tiles lower down stay locked until the tiles above and beside them are cleared, so every game is a question of digging the right tiles out in the right order.

The Rules

  • Remove tiles in pairs with identical faces.
  • Both tiles must be free. A tile is free when no tile on the layer above overlaps it and at least one of its left or right sides is open.
  • Only left and right neighbours block sideways. Tiles in the rows above and below on the same layer never block, so a tile at the end of its row is free even if the rows around it are full.
  • Clear every tile to win. In traditional play, a board with tiles left but no free pair is lost. On PlayVersusAI the remaining tiles are reshuffled instead, as explained below.

On PlayVersusAI, free tiles are drawn bright with white symbols, blocked tiles are dimmed, and your current selection turns purple. Blocked tiles ignore clicks, and clicking a free tile that doesn't match your selection simply moves the selection to it - there is no penalty for a wrong pick.

Core Strategy

How the board here is built

Rather than the traditional 144-tile turtle, PlayVersusAI deals a compact stepped pyramid. On the Small and Medium layouts the base layer is eight tiles wide and four rows deep, with layers of six by three, four by three and (on Medium) two by three stacked on top. The Large layout widens the base to ten by five and stacks eight by four, six by four and four by four above it. Every upper layer is shifted half a tile downward, so each upper tile straddles two tiles beneath it. The faces are the Characters, Circles and Bamboo suits from 1 to 9, the four winds, the three dragons and a set of flower pictures, and a tile only matches an identical face.

Every deal can be cleared

Faces are not simply shuffled onto the board. The game builds each deal backwards: starting from the full pyramid, it repeatedly picks two tiles that would be free at that point, gives them the same face and lifts them off, until the table is empty. Playing those pairs in reverse clears the board, so a solution always exists. Because removing tiles can only ever free other tiles, never block them, any free pair you take on Small or Medium keeps the board clearable - on those layouts every face appears on exactly two tiles, so there is never a wrong choice of partner.

Choosing between copies on the Large layout

Large has 61 pairs but only 42 distinct faces, so 19 faces appear on four tiles, as they do in a traditional set. That brings back the classic dilemma. When three copies of a face are free you have to pick two, and the one you leave behind may be the only key to a buried tile later. When all four copies are free, take both pairs straight away; there is nothing to gain by waiting. When three are free, match the two that are covering or flanking the most other tiles and leave the one that blocks nothing. Above all, avoid leaving two copies of the same face where one sits directly on top of the other.

If you do reach a position with tiles left but no free matching pair, the game reshuffles the faces of the remaining tiles - using the same backwards method, so the new arrangement is clearable - and tells you it has done so. The completion summary counts reshuffles, so a clean clear with none is the mark of a well-played Large board.

Digging efficiently

Because the leaderboard ranks time, play for speed and visibility. Start on the tall centre stack: it is the deepest part of the pyramid, and the tiles underneath it stay hidden longest. Prefer matches that uncover something - a top tile that frees two half-covered tiles below beats an edge tile that frees nothing. Work the long base rows from both ends, keeping an eye on the tile second from each end, since it becomes available next. When you see a free tile whose twin is still buried, note what is covering the twin and go after those tiles first.

Scanning for pairs quickly

Most lost seconds come from searching, not deciding. Pick one free tile and sweep the whole board for its twin before moving on, rather than darting between candidates. The suits are easy to tell apart by shape - Characters carry a written numeral, Circles show rings, Bamboo shows sticks - so check the suit first and the number second. Dimmed tiles are blocked, so you only ever need to scan the bright ones.

Common Mistakes to Avoid

  • Grabbing the first pair of a four-copy face on Large. When three copies are free, the pair you choose matters. Take the two that unlock the most tiles.
  • Misjudging the half-tile offset. Upper tiles straddle two tiles below, so one top tile can hold two lower tiles in place, and a tile can be covered even when most of its face is visible.
  • Treating rows above and below as blockers. Only the immediate left and right neighbours count, so check the sides, not the rows around a tile.
  • Hesitating over safe pairs on Small and Medium. With one pair per face, every free match is safe there. Take them as fast as you spot them; the clock is what counts.

Difficulty on PlayVersusAI

The layout buttons choose the size and depth of the pyramid. Every deal is generated so that it can be cleared.

LayoutLayersTilesWhat to expect
Small3 (8×4, 6×3, 4×3)62 tiles, 31 pairsA shallow pyramid where no tile is buried more than two layers deep. The best layout for learning to read free tiles.
Medium4 (adds a 2×3 top)68 tiles, 34 pairsA tall spine down the middle that leaves the centre of the base buried under three layers.
Large4 (10×5, 8×4, 6×4, 4×4)122 tiles, 61 pairsNearly twice the tiles, with 19 faces appearing four times, so the order you match in starts to matter.

The Matches counter rises by one for each pair removed. Your score is the time from your first click to the last match, and the leaderboard ranks the fastest clears. Personal bests are kept separately for each layout in your browser, while the online table currently combines all three. There is no hint or undo.

Frequently Asked Questions

Is this related to the four-player game Mahjong?
Only through the tiles. Mahjong is a rummy-like game for four players built around forming sets in your hand; Mahjong solitaire uses the same artwork for a single-player matching puzzle and shares none of the rules.
Can every deal be cleared?
Yes. Each deal is built backwards from an empty table, so a full clear always exists. On the Large layout an unlucky choice between copies of the same face can still leave no free pair; when that happens the remaining tiles are reshuffled into a clearable arrangement and the game carries on.
Do flower tiles match each other?
Not here. In some traditional sets any flower pairs with any other flower, but on this board each flower picture only matches an identical one.
Does it work on a phone or tablet?
Yes. Tapping a tile works the same as clicking. The board scales down to fit narrow screens, so on a small phone the tiles get small; turning the device sideways gives them more room.
Play Mahjong Solitaire Now

Free to play - no account needed