What is the 15 puzzle?
A 4x4 frame holds 15 numbered tiles and one empty space. You slide tiles into the space until the numbers run in order from 1 to 15. It set off one of the first worldwide puzzle crazes around 1880, and it is also called a sliding puzzle, sliding tile puzzle or Gem Puzzle. The 3x3 version is known as the 8 puzzle and the 5x5 version as the 24 puzzle.
How to play
- Choose a size: 3x3, 4x4 or 5x5. The board is shuffled and the timer starts.
- Only a tile next to the empty space can move. Tap it (or press an arrow key) and it slides into the space, leaving a new space behind.
- Put the tiles in order 1, 2, 3โฆ with the empty space last, in the bottom-right corner. Tiles turn green when they are in the right place.
- Your fewest moves and best time for each size are saved in this browser.
Why not just any random layout?
Here is a surprising fact: if you place the tiles at random, half of the layouts can never be solved. For example, a finished board with only 14 and 15 swapped cannot be fixed no matter how you slide. This is proved mathematically and comes from the parity of the permutation.
So this game shuffles differently: it starts from the solved board and makes hundreds of random legal moves. Because the way back always exists, every puzzle you get can be solved.
How to solve it: top to bottom
Beginners try to fix any tile they can and keep breaking what they just finished. Following an order makes it much easier.
- Finish the top row first. Once 1, 2, 3 and 4 are in place, leave that row alone.
- Place the last two tiles of a row together. If you put 4 in first, 3 has no way in. Line up 3 and 4 vertically, then slide them into the row in one go.
- When only the left two columns are left, pair the tiles vertically in the same way.
- The final 2x2 falls into place by rotating the three tiles around the space.
Learn this order on the 3x3 board (the 8 puzzle) first, and 4x4 becomes much easier.
FAQ
- What is the fewest number of moves needed?
- It depends on the starting position. It has been proved that any 4x4 position can be solved in 80 single-tile moves or fewer.
- Can I use the arrow keys?
- Yes. Press an arrow key and the tile on that side slides into the empty space.
- What does it mean when a tile turns green?
- The tile is in its correct place. If the green fills in row by row from the top, you are on the right track.
- Is every puzzle solvable?
- Yes. Each puzzle is shuffled by making real moves backwards from the finished board, so there is always a way back. A truly random arrangement would be impossible half of the time.