Mahjong Solitaire Game / About this Mahjong Solitaire game
About this Mahjong Solitaire game
Mahjong Solitaire Game is a one-game site. It hosts a free browser version of Mahjong Solitaire, the single-player puzzle in which mahjong tiles are lifted off a stacked layout in matching pairs.
Why it was made
The rule that decides which tile you may pick is short, yet it is the thing new players trip over: a tile looks reachable and will not respond. Most versions answer with a rules page. This one answers on the board. Blocked tiles are shaded, and tapping one rings the tiles that hold it, with an arrow showing whether each sits on top or to the side. First-time visitors get a six-tile practice board that can only be cleared one way, so both halves of the rule come up before the full deal.
How it was built and checked
The game is written for this site in plain JavaScript and runs entirely in your browser. The tile faces are drawn by the same code, with a small index in the corner of each tile.
Deals are produced by taking a full layout apart pair by pair, which guarantees a solution. Before release a test program checked each layout for overlapping or unsupported tiles, then played 1,000 deals per layout with random moves, confirming after every shuffle that the same tiles were still in the same places and that at least one pair was open. A second program clicked through the real page for 40 deals using hints, undo, shuffle and the menu, and reported no script errors. The solve rates quoted on the strategy page come from those runs.
What it stores
Your current deal, settings and best times live in your browser's local storage. There are no accounts. Details are on the privacy page.
Getting in touch
Bug reports and rule questions are welcome through the contact page. To play, return to the Mahjong Solitaire game.