All tools

15 Puzzle

Slide numbered tiles into order.

Moves: 0Goal: 1-15 in order, blank bottom-right

Click a tile next to the blank to slide it. Arrow keys also work.

About

The classic sliding puzzle. 15 numbered tiles on a 4x4 grid with one empty space. Slide adjacent tiles into the empty space until they're in order 1 through 15.

How to use

  1. Click an adjacent tile to slide it.
  2. Get them in order from 1 to 15.

FAQ

Is it always solvable?+

Half of all random arrangements are unsolvable. This generates only solvable boards by shuffling from the solved state.

What's the optimal worst-case?+

80 moves for a 4x4 board. Solving from any state takes at most 80 moves with perfect play.