The solver checks whether your arrangement is reachable, then finds a shortest path from your puzzle photo to the complete image you arranged.
How we found your shortest path
Shortest path
moves
Starting distance estimate
Arrangements expanded
Search time
Check that the target is reachable. For a 4 × 4 puzzle, we compare both the numbered tiles’ inversion parity and the blank’s row from the bottom with your target.
Estimate the remaining work. Manhattan distance counts how many rows and columns each tile is from its target, excluding the blank. Disjoint linear conflicts add unavoidable extra moves when two tiles block each other in their target row or column.
Explore promising moves. Iterative deepening A-star searches within a limit on moves so far + estimated moves remaining. If no solution fits, it raises the limit and searches again. Each move slides one neighboring tile into the blank.
Confirm the shortest path. The estimate never overstates the moves needed. Searching increasing limits ensures the first solution found is a shortest route. Multiple equally short paths may exist.
Play the route from your photo. The solution starts at the original photo layout and moves toward your arranged image. Use Prev, Next, Play, or Restart to follow each slide.
Arrangements expanded counts boards whose next moves were examined, including revisits in later search limits. Search time measures the browser’s search, excluding photo processing, network transfer, and animation.
A 4 × 4 puzzle has many more arrangements than a 3 × 3 puzzle. Difficult puzzles may reach the 25-second search limit. A timeout does not mean your puzzle is unsolvable.
Check the automatic crop before arranging. If it misses the grid, turn off automatic cropping and upload a photo already cropped to the square board. The uncropped upload is preserved separately as a compressed AVIF.
Iterative Deepening A-star
Explores legal moves within increasing distance limits to find a shortest solution while keeping memory use low.
Tile Distance
Uses Manhattan distance and disjoint linear conflicts to estimate the moves remaining to your complete photo.
Solvability Check
Checks the tile order and blank row before searching for a route to your chosen arrangement.