Sliding Puzzle

Slide tiles into numerical order

Grid:
Slide the tiles back into order
How to Play Moves: 0 Best: —

Click a tile next to the gap · or focus the puzzle and use the arrow keys

How to Play Sliding Puzzle

The sliding puzzle is a square tray of numbered tiles with one empty space. Click or tap any tile directly above, below, left or right of the gap and it slides into it. Your goal is to put the tiles back in order - 1, 2, 3 across the top row, continuing left to right and top to bottom - with the empty space finishing in the bottom-right corner. The puzzle recognises the solved position automatically as soon as you reach it.

Pick 3×3 (8 tiles), 4×4 (the classic 15-puzzle) or 5×5 (24 tiles). Each board is scrambled by making thousands of random legal slides from the solved position, so every puzzle you're given can definitely be solved. Every tile you slide counts as one move, and your final move count is your score - fewer is better. The clock starts with your first slide, and your time is shown alongside your moves when you finish.

Strategy Tips

Read the full Sliding Puzzle guide →

Playing Sliding Puzzle on PlayVersusAI

The puzzle that caused a craze in 1880: numbered tiles in a square tray with one empty space, to be slid back into order. Click or tap any tile next to the gap and it moves into it; tiles only move one at a time, and only horizontally or vertically. The puzzle is solved when the numbers read in order from the top-left and the gap sits in the bottom-right corner, and the game detects that position the moment you reach it.

Every board is scrambled by making thousands of random legal slides from the solved position, rather than by placing tiles at random. That matters, because half of all random tile arrangements can never be solved. Scrambling with real moves guarantees every puzzle you are given has a solution. Each slide adds one move, your total is your score, and the global leaderboard ranks the fewest moves highest. The clock starts on your first slide, and your time appears with your move count when you finish.

What's on This Page

Difficulty is the size of the grid. Easy is 3x3 with 8 tiles, Medium is the classic 4x4 with 15 tiles, and Hard is 5x5 with 24 tiles. The rules and the scrambling method are identical at every size, but each step up adds another full row and column to solve, so a typical solve gets much longer.

Mistakes That Lose Games

Sliding Puzzle Questions

Is every puzzle solvable?
Yes. Boards are created by sliding tiles at random from the solved position, so every scramble can be reversed. A puzzle made by placing tiles at random would have only a 50% chance of being solvable.
What counts as a move?
Each tile you slide counts as one move. You can only move one tile per click, so sliding several tiles across counts as several moves.
Why does the empty square have to end in the bottom-right?
That is the standard solved position for the 15-puzzle and its relatives. The game checks that every numbered tile is in order, which leaves the gap in the last cell.

For the complete rules, the deeper strategy and the history of the game, read the full Sliding Puzzle guide, or browse guides for all 33 games.