Skip to main content
Thanks for the feedback!

Sliding Puzzle (8-puzzle)

Live · No sign-in needed

Demo 2, Sliding Puzzle (8-puzzle)

Click "Auto-solve". The GA evolves a 20-move sequence and we play the first legal move on screen, then loop until solved.
4
2
8
3
6
7
1
5
Evolving sequence…
GA result
Solved
No
Manhattan distance
12
Last move played
,
Last swap
,
Best fitness
,
Generations evolved
GA wall-time
ms
Evolved sequence (first 8 moves)
,
Want to run your own?

Sign in for free to launch your own genetic algorithm against the built-in quick problems, or upload a custom one.