Skip to content

MamadTvl/8-puzzle-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Solving 8-puzzle problem

installation

install node.js from https://nodejs.org/

In the project directory, you can run:

npm install or yarn install

run the app

npm start or yarn start

example :

insert 1 2 3 8 0 4 7 6 5 and enter as start-state

insert 5 6 7 4 0 8 3 2 1 and enter as goal-state

Search methods to be implemented bfs, ids ,dls, bidirectionalSearch, aStar.

need to change the name of the searching function, like bfs,ids,... in the main() function.

Releases

No releases published

Packages

No packages published