Language

How to playRules

Sliding Puzzle

Time
0:00
Moves
0
In place
0

How to play the Sliding Puzzle

The Sliding Puzzle, best known as the 15 Puzzle, is a frame of numbered tiles with one empty cell. Slide the tiles one by one until they stand in order. It became a craze in 1880 and has been a favorite ever since.

The goal

Put the tiles in order: 1 at the top left, then row by row, with the empty cell at the bottom right.

Setting up

A board of four by four cells holding fifteen numbered tiles in mixed order, and one empty cell.
A new puzzle. 1 Fifteen numbered tiles, shuffled. 2 The empty cell.

How to play, step by step

  1. Find the empty cell. Only tiles in its row or its column can move.
  2. Slide a tile. Tap a tile next to the empty cell: it slides into it.
  3. Slide several at once. Tap a tile further along the same row or column: it and every tile between it and the empty cell slide one step together.
  4. Watch the colors. A tile in its right place turns green.
  5. Win. When every tile is in order, the puzzle is solved.
The empty cell is at the left of the second row. Tile 6, two cells to its right, is circled, and an arrow shows tiles 5 and 6 sliding left together.
1 Tap the 6. 2 The 5 and the 6 slide one step left together, into the empty cell. That counts as two moves.

Common mistakes

The empty cell is at the left of the second row. Tile 10, one cell down and to the right, is outlined in red with a cross; tile 13, at the bottom of the same column, is circled with a tick.
✗ Not allowed The 10 is not in the empty cell's row or column, so it can't move. ✓ Allowed The 13 is in its column: the 9 and the 13 slide up.

Two more things catch new players. Placing tiles one by one in any order soon means moving finished tiles out again: build the top row first, then the left column, and only then the rest. And the last two tiles of a row never go in one at a time. Put them in together: bring the last one under the corner first, then turn both into place.

Sizes

SizeTilesFewest moves that solve any puzzle
Small 3×3831
Classic 4×41580
Large 5×524Not known

There are no points: the top bar counts your moves (one for every tile that slides) and the tiles already in place, and the statistics keep your best time and fewest moves for each size.

How you win

Put every tile in order with the empty cell last. Choose the size under New.

Undo and hints

Undo takes back as many moves as you like. Hint marks the next tile to slide on a way that always finishes: the top row first, then the left column, then the smaller square left over. Follow the hints and the puzzle is solved, though not in the fewest moves.

Controls

Tips for solving faster

Questions

Can every puzzle be solved?

Every puzzle dealt here can. In 1879 two mathematicians, Johnson and Story, proved that half of all ways to arrange the tiles can never be put in order, such as the board in order with only 14 and 15 swapped. The game checks each shuffle and deals only the solvable half.

How many moves does it take?

Any small 3×3 puzzle can be solved in 31 moves or fewer, and any 4×4 puzzle in 80 or fewer, counting each tile that slides. Finding those shortest ways is hard even for computers; a good solve by hand takes more.

Does Undo cost anything?

No. Undo as often as you like; the move counter simply goes back with it.

Is it free? Do I need an account?

Yes, it's free, and you don't need an account or a download. Your current game and your statistics are saved in this browser on this device. A free account is optional: it keeps your games on every device and puts your wins on the leaderboards.

What happens if I close the page?

Your puzzle is saved after every move. Open the page again in the same browser and you carry on where you were.

Can I play offline?

Yes. After your first visit, the game works without an internet connection. On a phone, add it to your home screen to open it like an app.

Similar games

All games