Skip to content

mohammedElfatihSalah/8-Puzzle-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

8-Puzzle-Solver

An interactive program for "8 puzzle" game with AI search-based solvers. Below is a short demo about the program

Alt 8 puzzle demo

Currently the following solvers are supported:

  • Depth first search.
  • A star search based on the manhattan distance heuristic.

Get started

Pull the code to your local directory. You can use the following command

git clone https://github.com/mohammedElfatihSalah/8-Puzzle-Solver.git

Then install dependencies (only pygame for now) :

pip install -r requirements.txt

Finally you can run the program using the following command:

python main.py

Enjoy :)

Future Features & Collaborations:

  • Implement radio buttons to select between different solvers.
  • Implement a hint feature to show the user the next move only
  • Add a pause feature so the user can stop solvers and continue to solve by themselves.

About

using AI search technique to solve the 8 puzzle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages