Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 489 Bytes

README.md

File metadata and controls

25 lines (12 loc) · 489 Bytes

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.