/N-Puzzle-Solver

Used React Hooks to create a UI for N-Puzzle-Problem-Solver-Using-AI

Primary LanguageJavaScript

To run the app

  1. Clone the project
  2. Use npm i to install dependencies.
  3. Use npm start to run the app.

Click here to see the hosted app

A tutorial is provided to explain how the app works.

image

Click on the tiles to shuffle them and choose the algorithm and click on Solve Puzzle! to watch the puzzle solve itself

image

A search tree will be generated to show how the algorithm found the solution. Hover on any node to check the configuration. The green node is the solution node and the red node is the initial state of the puzzle.

image