8 Puzzle Solver

AI-powered puzzle solver, let you find the solution of the sliding 8-puzzle in just a second.

Step 1: Upload Template (Optional)

To get started, upload your image template below.

PNG or JPEG, up to 5 MB. Large images are resized for upload.

Want to give it a try? Slide the tiles and see if you can solve it.

Step 2: Arrange Puzzle to Solve

Which tile is the empty space?
Click or tap that tile in the photo below.
No tile selected

First, click or tap the tile that represents the empty space. Then drag and drop all nine tiles from the photo on the left into the solved arrangement on the right.

1
2
3
4
5
6
7
8
9
Complete photo — drag these tiles
Drop it here!

How its done?

To get the best possible solution, we uses 3 types of algorithm with an iteration limit of up to only 5,000. Our AI-powered solver find and save the shortest path of all solved problems and matches these path faces with the new path to reuse the solution, that way it gives answers in second and less iteration.

star
A-star Search Algorithm

Uses pathfinding to check each nodes and keeps tracks of the visited nodes until it finds the solution. The longest depth we used is up to 10,000 nodes.

call_split
Breadth-first Search Algorithm

If other algorithm cannot solve the problem, we uses traversing or a search tree structure to find solution. The depth is limited to 10,000 nodes.

text_rotate_vertical
Depth-first Search Algorithm

Lastly, this algorithm find the solution from a node branch as far as possible with a limit of 15,000 nodes for each. Giving you answers for all possible combinations.