Skip to content

MAbdelhamid2001/8-Puzzle-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

8-Puzzle-Solver

8-Puzzle-Solver program using:

  • A_Star Algorithm
  • BFS Algorithm

An example of the run

----------
state: 0
2 8 3
1 6 4
7 0 5
----------
state: 1
2 8 3
1 0 4
7 6 5
----------
state: 2
2 0 3
1 8 4
7 6 5
----------
state: 3
0 2 3
1 8 4
7 6 5
----------
state: 4
1 2 3
0 8 4
7 6 5
----------
state: 5
1 2 3
8 0 4
7 6 5
----------