This project allows you to generate a random maze with a specified width and height using a web interface. It also provides the ability to find the shortest path from the start to the end square within the generated maze using different path-finding algorithms.
Before you can run the application, make sure you have the following prerequisites installed on your system:
The project has the following dependencies, which you need to install using npm (Node Package Manager):
npm install [email protected] [email protected] [email protected]
To run the application, follow these steps:
-
Open your terminal/command prompt.
-
Navigate to the project's root directory.
-
Change the working directory to the server folder:
cd server
-
Start the Node.js server:
node main_server.js
-
After running the Node.js server, you can access the web interface by opening a web browser and going to the following URL:
-
On the web interface, you can input the width and height for the maze generation. Ensure that both values are between 5 and 30.
-
Select a path-finding algorithm from the available options.
-
Click the "Submit" button to generate the maze and find the shortest path.
-
The generated maze will be displayed on the web interface along with the shortest path highlighted.