← Back to all games
🧩

Sliding Puzzle

Puzzle

Slide numbered tiles back into order, one move at a time.

Moves: 0

How to play

Click any tile next to the empty space to slide it in. Arrange the numbers 1 through 8 in order, left to right, top to bottom, in as few moves as you can.

About the Sliding Puzzle

The sliding puzzle is one of the simplest ideas in mechanical puzzle design: eight numbered tiles sit inside a 3x3 frame with one empty space, and the only legal move is sliding a tile adjacent to that empty space into it. There's no way to lift a tile out, no way to swap two tiles directly, and no extra piece to work with — just tiles and one gap, shuffled at the start of every round, that you have to walk back into perfect numerical order using nothing but that single sliding motion repeated over and over.

A puzzle with a real mathematical history

This exact format, often called the 8-puzzle in its 3x3 form or the 15-puzzle in its larger 4x4 version, became a genuine craze in the late 1870s after a similar sliding-tile toy was mass-produced and sold widely. It also happens to be one of the earliest puzzles studied seriously by mathematicians, because not every starting arrangement of tiles can actually be solved — roughly half of all possible shuffles are mathematically unsolvable no matter how many moves you make, a fact tied to a property called permutation parity. Our version accounts for this directly: every shuffle it generates is checked against that rule before the puzzle starts, so any arrangement you're given is guaranteed to be solvable, even though it may still take real effort to prove that to yourself.

How to play this version

Click any tile that sits directly next to the empty space — above, below, left, or right — and it slides into that gap, opening up a new empty space where the tile used to be. Your goal is to arrange the numbers 1 through 8 in reading order, left to right and top to bottom, with the empty space ending in the bottom-right corner. Every click counts as one move, and that move counter is the scoreboard here: a fresh shuffle typically needs somewhere between twenty and forty moves to solve efficiently, so getting close to the lower end of that range is a genuine mark of skill rather than luck.

A method that actually works

Random clicking rarely solves this puzzle beyond the first couple of tiles, because moving one tile into place often disturbs tiles you'd already solved. The reliable approach is to solve in layers rather than tile-by-tile everywhere at once. Start with the top row: get the 1 and 2 tiles into their correct positions first, since they only need to be moved around the top two rows to get there without disturbing anything below. Once the top row is locked in, treat it as fixed and solve the middle row the same way, using only the bottom two rows to maneuver pieces into place. What's left by that point is a 2x2 block in the bottom-right, which has very few possible remaining configurations and is easy to finish once you recognize the pattern.

Why it stays satisfying after decades

Unlike puzzles that rely on hidden information, everything in a sliding puzzle is visible from the first click — there's nothing to discover, only a sequence to work out. That transparency is exactly what makes it a favorite testbed in computer science and cognitive psychology alike: it's simple enough to explain in one sentence, yet the space of possible move sequences is large enough that finding an efficient solution takes real planning rather than trial and error. Solving it teaches a specific and transferable kind of thinking — working backward from a known-good sub-goal (a solved row) instead of trying to solve the whole problem in one pass, which is a strategy that shows up constantly outside of puzzles too.

Tips if you're stuck

If you find yourself circling the same handful of moves without progress, it usually means you're trying to place a later tile before finishing an earlier one — step back and check whether your top row is genuinely complete before touching the middle row. It also helps to plan two or three slides ahead rather than one at a time; because every move affects which moves are available next, thinking only one step ahead tends to create the exact kind of disturbed layout that makes the puzzle feel unsolvable.

Play another round

Every restart generates a brand-new, verified-solvable shuffle, so there's always a fresh layout to test your method on. If you enjoyed the layered, step-by-step logic here, Minesweeper offers a different kind of deductive puzzle in the same category, built around probability and elimination instead of sequencing.