🧩Slide Puzzle

Classic 15-puzzle — slide tiles to restore order 1–15

Moves
0
Fewest moves
–

Tap a tile beside the blank, or use arrow keys to move the blank. Order 1–15 to win.

How to Use

A 4×4 board holds tiles 1–15 and one blank. Slide adjacent tiles into the blank until numbers read 1–15 in order. Best (fewest) moves are saved locally.

FAQ

Can shuffles be unsolvable?

No — only solvable permutations are generated.

How do arrow keys work?

They push the blank in that direction.

How many moves can Undo take back?

Just the last one: it restores the previous board and subtracts 1 from your move count. The button is disabled after you win or when there's no history.

What size is the board?

A standard 4×4 with 15 numbered tiles; the goal order is 1 through 15 with the blank in the bottom-right. The shuffle only produces solvable positions.

Can I play with a mouse?

Yes — click any tile adjacent to the blank to slide it. Arrow keys push the blank in the arrow's direction; both methods count moves identically.

How do moves and records work?

Every slide counts as 1 move and Undo subtracts one. After solving, your fewest-moves record is kept in the browser's local storage.