Skip to content

We explore the speed and optimality of algorithms to solve the sliding-puzzle game. We compare A*, BFS, greedy best-first search, and a custom human-based algorithm.

nayaknishant/sliding-puzzle-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sliding-block puzzle solver

We explore the speed and optimality of algorithms to solve the sliding-puzzle game. We compare A*, BFS, greedy best-first search, and a custom human-based algorithm. In the 24-puzzle game, finding the optimal solution using BFS is infeasible, finding the optimal solution using A* can take hours or days, but finding a sub-optimal solution using our human-based algorithm takes a few seconds or minutes.

To run our human-based algorithm, clone or download the repo and run:

python solver.py

To run the A* search algorithm run:

python solver.py --astar

About

We explore the speed and optimality of algorithms to solve the sliding-puzzle game. We compare A*, BFS, greedy best-first search, and a custom human-based algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages