Toolstia / Sliding puzzle game

Sliding puzzle game

Slide the numbered tiles one at a time into the empty space until they are in order from 1 upwards. Choose the small 3 by 3 board or the classic 4 by 4. Every shuffle can be solved.

0Moves

Slide the tiles into order, with the empty space last.

Click a tile next to the empty space to slide it. Every shuffle can be solved.

How it works

  1. Choose the board size.
  2. Click a tile next to the empty space to slide it.
  3. Put the numbers in order with the empty space last.

How it works

Only tiles that touch the empty space can move. The goal is rows reading 1, 2, 3 and so on, with the gap in the bottom right corner.

Always solvable

The board is shuffled by making random legal moves from the finished position, so it can always be solved.

Strategy

Solve the top row first, then the next, and leave the last two rows for the end.

Moves

The move counter lets you try to beat your own best.

Questions

Why are some random puzzles impossible?

If tiles are swapped by hand, half of the arrangements cannot be solved. This game never does that. Everything happens in your browser, and nothing you enter is sent anywhere.

Can I use the keyboard?

Tab to a tile and press Enter or Space to slide it.

How many moves does it take?

The 3 by 3 puzzle needs at most 31 moves with perfect play. Most people use many more.