Skip to content

boppreh/8puzzle

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

8puzzle

Python solution to sliding 8-puzzle. We start with the final state

123
8 4
765

and compute all states reachable by it, depth-first. The resulting table has ~180,000 entries and is saved to a file (table.pkl) for faster queries. The table takes about 6 seconds to be built and persisted on my machine, and subsequent queries are practically instantaneous. The worst case requires 30 steps to solve.

About

Python solution to sliding 8-puzzle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages