What counts as a sliding block puzzle
“Sliding block puzzle” gets used for a few different toys and games, so it helps to be clear about which one you have before you reach for a sliding block puzzle solver.
- Numbered tiles. Square tiles numbered 1 to 8, 1 to 15 or 1 to 24 in a square frame, with one empty space. The 15 puzzle is the best-known example.
- Picture tiles. Exactly the same mechanics, but the pieces form an image instead of a number sequence.
- Blocks of different sizes. Puzzles such as Klotski and Rush Hour, where pieces are long, short, large or small and you slide them to free one particular piece.
This tool solves the first two kinds, on square 3x3, 4x4 and 5x5 boards. It does not solve Klotski, Rush Hour or other puzzles with pieces of different sizes, and it does not handle rectangular boards. If your puzzle has equal-sized pieces and one gap, you’re in the right place: the solver above gives you the shortest solution for 3x3 and 4x4 boards and a complete solution for 5x5.
Using the sliding block puzzle solver on picture puzzles
With a picture puzzle there are no numbers to type in, so the tool reads the board from images instead:
- Open the upload panel and choose Picture mode, along with the board size.
- Upload a screenshot of the scrambled puzzle, then the original image: the game’s preview, or a screenshot of the finished picture.
- Drag the four corners so the frame sits exactly on the puzzle. A grid appears inside the frame to help you line it up, even if the photo is taken at an angle.
- The tool cuts both images into tiles and matches every scrambled piece to its home in the original. Pieces it isn’t sure about are highlighted.
- Check the board, tap any tile to correct it, and press Solve.
Everything happens in your browser; neither image is uploaded anywhere. If your puzzle uses numbers instead, the main sliding puzzle solver lets you type the board in directly, which is often quicker than taking a screenshot.
A short history of sliding block puzzles
The 15 puzzle appeared in the United States in the 1870s, and in early 1880 it became a craze across the US and Europe. Its invention is usually credited to Noyes Palmer Chapman, a postmaster in New York State. Sam Loyd later claimed he had invented it, but that claim doesn’t hold up.
Loyd’s name did become attached to the most famous version: the 14-15 puzzle, a board that is solved except that 14 and 15 are swapped. Loyd claimed to offer $1,000 to anyone who could solve it. Nobody could collect, because the position is impossible. In 1879, Johnson and Story had already proved in the American Journal of Mathematics that half of all starting positions of the puzzle can’t be solved.
That proof is still the first thing to check when a puzzle refuses to come out. The unsolvable sliding puzzle page shows how to test any board in a few seconds, and if you would like to learn the solving method yourself, read how to solve a sliding puzzle.