Slide Puzzle
Slide the numbered tiles back into order. The classic sliding puzzle.
About Slide Puzzle
Slide Puzzle is our take on the most famous mechanical puzzle ever made: the sliding-tile puzzle, better known by the name of its most popular form, the 15-puzzle. The setup could not be simpler. You have a grid of numbered tiles and exactly one empty cell. Tiles cannot be lifted or rearranged by hand, only slid into the gap one at a time. Yet from that single rule comes a puzzle that has fascinated people for well over a century, from Victorian parlour rooms to modern competitive speed-solving. It is the rare puzzle that is easy to pick up in ten seconds and genuinely hard to master, which is exactly why it has never gone out of fashion.
Our PlayZone version is built in-house and runs entirely in your browser, with no download, no account, and nothing to install. We give you three board sizes to choose from: a gentle 3x3 (the 8-puzzle), the classic 4x4 (the true 15-puzzle), and a punishing 5x5 (the 24-puzzle) for when you want a real challenge. Every game tracks your move count and a live timer, and it saves a separate best time for each board size to your browser, so you always have a personal record to beat. The board is scrambled by performing hundreds of random but legal slides from the solved state, which guarantees that every puzzle you are handed can actually be solved. The whole thing is tuned for both a mouse and a phone screen, so a single tap on any tile next to the gap slides it into place.
How to Play Slide Puzzle
The goal is to arrange the tiles in order, reading left to right and top to bottom, with the empty cell ending up in the bottom-right corner. On a 4x4 board that means 1 through 15 in sequence with the blank in the last cell; on a 3x3 it is 1 through 8, and on a 5x5 it is 1 through 24. To move a tile, tap or click any tile that sits directly next to the empty space (above, below, left, or right of it). That tile slides into the gap, and the gap moves to where the tile used to be. You can only ever move a tile that is adjacent to the blank, so a lot of solving is really about repositioning the blank to where you need it next.
Because you can only slide along a row or column, you cannot simply drop a tile into its target from across the board. Getting a tile into position usually means routing the blank around the back of it and nudging it one step at a time, like maneuvering a piece of furniture through a narrow hallway. That constraint is the whole game. Start a new shuffle whenever you like, watch the move counter and timer climb, and aim to finish in as few moves and as little time as possible.
A Solving Method That Actually Works
Most people who get stuck on a slide puzzle are trying to solve the entire board at once, which is overwhelming and almost impossible to hold in your head. The reliable approach is to lock pieces into place permanently and never disturb them again, shrinking the puzzle one layer at a time until what is left is small enough to solve by feel. Here is the method, in order:
- Solve the top row first, left to right. Place tile 1, then 2, and so on across the entire top row. On a 4x4 that is tiles 1 through 4. Once a tile is in its correct final spot, treat it as a wall you will not move.
- Use the last-two-tiles rotation trick for each row's end. The final two tiles of a row (for the top row, that is 3 and 4) almost never cooperate if you try to drop them in straight. Instead, place the second-to-last tile (3) into the corner where the last tile (4) should go, place the last tile (4) directly below it, then rotate the pair into place with a small loop of the blank. This single setup-and-rotate move is the most important technique in the whole puzzle.
- Solve the left column next, top to bottom. With the top row finished, work down the leftmost column. On a 4x4, that means placing tiles 5, 9, and 13. Use the same corner-and-rotate idea for the bottom two tiles of the column that you used for the end of the row.
- Reduce to a smaller sub-puzzle. Once the top row and left column are locked, you are left with a 3x3 puzzle (on a 4x4 board) or a smaller block. Repeat the exact same process: solve its top row, then its left column, and reduce again.
- Finish the last 2x2 corner. Eventually you are down to a 2x2 block with three tiles and the blank. If the puzzle is solvable, and on our board it always is, those three tiles will rotate cleanly into place with a few moves of the blank around the little square. If they appear to be in a three-cycle that will not resolve, you have made an earlier mistake higher up, not hit an impossible position.
- Reposition the blank deliberately. Between every placement, your real job is moving the empty cell to where it needs to be without disturbing tiles you have already solved. Plan the blank's path the way you would plan a route on a map, going the long way around finished pieces rather than straight through them.
- Scale the method up, not the difficulty of each step. The same top-row-then-left-column reduction solves a 3x3, a 4x4, and a 5x5. A bigger board is not harder per step; it just has more layers to peel. If you can solve a 4x4 with this method, the 5x5 is the same skill repeated.
Why Random Shuffling Keeps Every Board Solvable
There is a genuinely interesting piece of mathematics hiding behind the shuffle. Not every arrangement of the tiles can actually be reached by sliding; exactly half of all possible arrangements are unsolvable. This is the famous result tied to the 15-puzzle craze of the 1880s, when puzzle promoter Sam Loyd is said to have offered a large cash prize for swapping just two tiles back into order, a position that is provably impossible to solve. The reason is a property called parity: each legal slide changes the puzzle's permutation by a fixed parity, and combined with the position of the blank it determines whether a given board can ever reach the solved state.
Rather than generating a random arrangement and then checking it with parity math, we sidestep the whole problem. We start from the finished, solved board and apply hundreds of random but completely legal slides. Since we only ever make moves that the game itself allows, the result is guaranteed to lie in the solvable half of all positions, every single time. You will never be handed a board that cannot be completed, which means if you are stuck, the solution exists and the fault is in your route, not the puzzle. It also means there is no "give up because it is impossible" excuse, which is part of the appeal. If you enjoy this kind of self-contained logic challenge, you will probably also like our Lights Off puzzle, which is built on a different but equally elegant piece of math, and the pure pattern-recall workout of Memory Match.
A Short History of the Sliding Puzzle
The sliding-tile puzzle dates to the 1870s and 1880s in the United States. The physical 15-puzzle appears to have been devised by Noyes Palmer Chapman, a postmaster in New York State, and it exploded into a full-blown national and then international fad in 1880, comparable in its day to later crazes like the Rubik's Cube. Sam Loyd, a celebrated puzzle popularizer of the era, attached his name to it and stoked the mania with his (impossible) prize challenge, which is why his name is still linked to the puzzle even though he did not invent it. The 4x4 grid with 15 tiles became the canonical form, and the basic idea has since been reskinned countless times, from numbered tiles to scrambled photographs to letters that spell words. The mechanics are identical in all of them: one gap, slide to sort. Today the puzzle also serves as a classic teaching example in computer science for search algorithms, since solving it optimally is a well-studied problem in artificial intelligence.
Further Reading
- The History of HTML5 Games How classic puzzles like the 15-puzzle found a second life in the browser.
- Do Casual Browser Games Actually Train Your Brain? The honest research on spatial and logic puzzles.
- 7 Best Casual Games to Play in 5 Minutes Where a quick 3x3 slide puzzle fits into a short break.
FAQ
Is every shuffled board really solvable?
Yes, without exception. We never generate a random arrangement directly. Instead we start from the solved board and make hundreds of legal slides, so the scrambled position is guaranteed to be reachable back to the solution. Exactly half of all possible tile arrangements are mathematically impossible to solve, and our shuffle method never lands in that half.
What is the difference between the 3x3, 4x4, and 5x5 boards?
The 3x3 board (the 8-puzzle) has 8 numbered tiles and is the quickest to learn and solve. The 4x4 board is the classic 15-puzzle with 15 tiles. The 5x5 board (the 24-puzzle) has 24 tiles and is significantly more demanding. The solving method is identical across all three; the bigger boards just have more rows and columns to lock down before you reach the final corner.
How do I move a tile?
Tap or click any tile that is directly next to the empty cell, whether above, below, left, or right of it. That tile slides into the gap. You can only ever move a tile adjacent to the blank, so much of the puzzle is about routing the empty space to where you need it next.
What is the single most useful technique to learn?
The corner-and-rotate trick for the last two tiles of any row or column. Trying to slot those final two tiles in directly almost always fails. Instead, put the second-to-last tile into the corner spot meant for the last tile, place the last tile just below it, and rotate the pair into place. Master that one move and the whole puzzle opens up.
I am stuck near the end with three tiles that keep cycling. Is it broken?
No. If three tiles in the final corner seem to rotate forever without ever resolving, the puzzle is not impossible, because every board we deal is solvable. It means a tile you locked earlier in the top row or left column was actually placed wrong, which throws off the parity of the remaining block. Back up, recheck your finished rows and columns, and the corner will resolve.
Does the game save my best score?
Yes. It saves your best time separately for each board size, stored locally in your browser. Your records persist between visits on the same browser and device, but clearing your browser data, switching browsers, or playing in private mode will reset them.
Should I optimize for fewest moves or fastest time?
The game tracks both, so it is up to you. Speed-solvers usually accept a few extra moves in exchange for a smooth, fast rhythm of tapping. If you want a pure logic challenge, try to minimize your move count instead, which forces you to plan the blank's path more carefully. Beating your saved best time is the most common goal since that record is the one we store per board size.
Is the slide puzzle good for kids?
The 3x3 board is excellent for children. It teaches spatial reasoning, planning ahead, and patience, with no reading, no violence, and no purchases of any kind. It is also a great first introduction to the idea that some problems are solved by working in stages rather than all at once. Start kids on 3x3 and move up to 4x4 once they can finish the smaller board on their own.