Skip to content
bobob

Puzzle1-10 min

Sliding Puzzle

Slide into the blank and get 1 to the end in order

Loading the game...

How to play

  1. 1Pick a size at the top. The 3x3 is the 8-puzzle, the 4x4 the 15-puzzle and the 5x5 the 24-puzzle. Tap the daily board for the layout everyone gets today.
  2. 2Tap a tile in the blank's row or column, or swipe a tile towards the blank. Tap a distant tile and the whole line between slides at once. A swipe anywhere on the board moves the tile beside the blank in that direction.
  3. 3The number and picture buttons below change the tile style. Choose Picture and each board is a freshly drawn scene cut into pieces, with a small number in the corner to check the order.
  4. 4The arrow keys and W A S D work too, moving a tile in the direction you press. Press left and the tile to the right of the blank comes left.
  5. 5The clock starts on your first slide. The move count goes up by one each time a tile moves one square.
  6. 6Slid the wrong way? The undo button (Z) takes it back a move at a time. The move count comes down with it, and a board you used undo on is left out of the fewest-moves record.
  7. 7When 1 to the end run from the top left to the bottom right and the bottom right is blank, you are done. Your time and move count are recorded.

Controls

Click / tap a tile
If it shares the blank's row or column, slide that way
Drag / swipe a tile
Slide towards the blank, or swipe anywhere to move like an arrow key
Arrow keys / W A S D
Slide one tile in the direction you press
Z / Undo button
Take back the last slide (and the move with it)
Restart button
Return the same board to its starting layout
New board / Daily board
Take a fresh layout at the same size
Numbers / Picture buttons
Switch between number tiles and picture pieces

Tips

  • Finish the top row first, then the left column. Filling in from the outside shrinks what is left from 4x4 to 3x3 to 2x2.
  • Do not place the last two tiles of a row one by one. For a 4x4 top row, stand the 4 in the 3's place and the 3 directly below it, put the blank to the right of the 4, then push the 4 right and the 3 up.
  • Disturbing tiles you have already placed is usually a loss. When you have to break a row, break as little of it as you can and rebuild it.
  • Leave the in-place marker on and tiles in their correct square light up. The moment the number of lit tiles starts falling, you have taken a wrong turn.
  • Tapping a tile far from the blank to slide a whole line is less work for your hands. Be aware that the move count rises by the number of tiles that moved.
  • In picture mode the sky is at the top and the lake at the bottom. Get the broad direction from colour and shape first, and only check the corner numbers when you are unsure.
  • To cut your move count, add up the squares each tile still has to travel. You can never finish in fewer than that. And if two tiles share a line in the wrong order relative to each other, one of them has to leave the line and come back, which costs 2 moves more.
  • Keep undo for a slip of the hand. A board you used it on is left out of the fewest-moves record, so if you are after that record, think one move longer instead.

What is Sliding Puzzle?

Fifteen tiles sit shuffled in a 4x4 frame, and there is exactly one blank. Only the tiles beside the blank can move, so you open a path one square at a time and work the numbers back into order from 1. A 3x3 takes a few minutes; a 5x5 takes a while.

The puzzle was made in the United States in the 1870s and swept Europe and America around 1880. Mathematicians soon found something strange about it: shuffle the tiles at random and half of all layouts cannot be solved at all, no matter what you do - a layout with only the 1 and the 2 swapped, for instance. This game only ever deals layouts that can be solved. The shuffle carries a parity check, and for the 3x3 every possible layout was run through to confirm that the check is right.

The 3x3, the 8-puzzle, has 181,440 solvable layouts and even its hardest board falls in 31 moves. The 4x4, the 15-puzzle, runs to about 10 trillion, and computer search has established that 80 moves always suffice. People normally use many more than that, but once you know the order to work in, a 4x4 comes apart in a few minutes. Each tile is tinted according to where it belongs, so watching which way the colour spreads makes it easier to see where a tile has to go.

When you finish, your move count is shown beside the fewest moves that board needed. For the 3x3 every case is searched, so the figure is the exact minimum (31 for the hardest board), while the 4x4 and 5x5 show a lower bound - 'this many or more'. That bound is the sum of the squares each tile still has to travel, plus 2 moves for every pair of tiles sitting in the same line in the wrong order relative to each other, which is called a linear conflict. The exact minimum needs tables hundreds of megabytes across from the 4x4 upwards, so it is not computed on the game page. You can never beat the figure, and the closer you get the better you played.

A bad slide can be taken back one move at a time with undo (Z). The move count comes back down with it, which is why a board where you used undo is left out of the fewest-moves record (the time record stands, because the clock kept running). How many days in a row you have solved one, and how many boards you have solved at each size, pile up in this browser too.

Frequently asked questions

Is every board really solvable?

Yes. The shuffled layout is checked by parity to see whether it can be solved, and if it cannot, two tiles are swapped before it is dealt. For the 3x3, that check was verified against every possible layout.

How is the daily board decided?

By the date in Korea time, so picking the same size on the same day gives everyone the same layout. A new date brings a new board, and records are kept separately per size.

How are moves counted?

One per square a tile travels. Sliding three tiles at once counts as 3 moves, which is why pushing a whole line does not bring your move count down.

Does picture mode keep its own record?

No. Picture mode only changes how the tiles look. At the same size, solving with numbers or with pictures goes into the same record. When you finish, the best time and the fewest moves per size are shown together.

Is a board in progress saved?

Yes. Any board you have moved at least once is saved, so you can close the window and carry on later, with the clock left where it stopped. It does not carry over to another device. The undo history only lasts while you are looking at that board, so closing the window means you can no longer undo.

What does '80 moves or more' mean?

On the 4x4 and 5x5 you get a lower bound rather than the exact minimum. It is the sum of the squares each tile still has to travel, plus 2 moves for every pair of tiles in the same line that are in the wrong order relative to each other. You can never finish in fewer than that. The 3x3 searches every case and gives the exact minimum.

Does using undo mean no record at all?

The time record still stands, because the clock kept running. Only the fewest-moves record is withheld. Undoing takes the move count back down as well, so without that rule a low move count would be trivially easy to manufacture.

Similar games

All Puzzle games