Sliding Puzzle
Click any tile next to the empty space to slide it. Arrange all fifteen tiles in order, with the empty space ending in the bottom-right corner, using as few moves as you can.
The 15 Puzzle dates back to 1874, invented by Noyes Chapman, but it became a genuine national craze a few years later when puzzle-maker Sam Loyd offered a real cash prize to anyone who could solve a specific starting layout with two tiles swapped. Nobody ever collected — that exact layout is mathematically impossible to solve, a fact that took mathematicians years to prove rigorously.
A solving strategy that scales to any size board: solve the top row first, then the left column, then treat whatever's left as a smaller version of the same puzzle. For the last two tiles in a row, there's a specific rotation trick — place them both in the row below, one column short of where they belong, then rotate them into place together.
Every board here is shuffled from the solved state using only legal moves, so unlike Loyd's famous trap, whatever you're handed is always solvable — no need to worry about parity, just about move count.
Click any tile next to the empty space to slide it into that spot.
Yes — each new game is generated by shuffling from the solved state using only legal moves, so it can always be solved.
Easy is a 3x3 board (8 tiles), Medium is the classic 4x4 (15 tiles), and Hard is a 5x5 board (24 tiles) — more tiles means more moves to sort them all.