Coder Social home page Coder Social logo

maze_generator's Introduction

Maze Generator and Path Finder

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.

Prerequisites

Before you can run the application, make sure you have the following prerequisites installed on your system:

  • Node.js - A JavaScript runtime.
  • Python - A high-level programming language.

Dependencies

The project has the following dependencies, which you need to install using npm (Node Package Manager):

Running the Application

To run the application, follow these steps:

  1. Open your terminal/command prompt.

  2. Navigate to the project's root directory.

  3. Change the working directory to the server folder:

    cd server
  4. Start the Node.js server:

    node main_server.js
  5. After running the Node.js server, you can access the web interface by opening a web browser and going to the following URL:

    http://127.0.0.1:8088/

How to Use

  1. On the web interface, you can input the width and height for the maze generation. Ensure that both values are between 5 and 30.

  2. Select a path-finding algorithm from the available options.

  3. Click the "Submit" button to generate the maze and find the shortest path.

  4. The generated maze will be displayed on the web interface along with the shortest path highlighted.

maze_generator's People

Contributors

mehdie79 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.