Code Monkey home page Code Monkey logo

path-finder-app-with-dijkstra-algorithm's Introduction

Path Finder App with Dijkstra's algorithm

My Image

Overview

Get lost at the middle of the traffic? No problem, here comes Path Finder App. By using Dijkstra's algorithm is App will automatically generate the most optimal route for user to get to the destination.

The Solving Mazes programs takes the maze input text files and input from the user. The user can see:

  • the maze displayed without a solution
  • the maze displayed with the solution, marked with * (if there is a solution)
  • if the maze is unsolvable.

Usage

When the user runs the program after downloading the code, they must compile the code and then execute the program with the name of the maze file that they would like to input, for example:

$ javac *.java
$ java Maze maze.txt

Where maze.txt is the name of the maze file which user want (for the example below, it is maze2.txt).

After upon execution, the user is prompted whether or not they want to display the solution:

$ Do you want to display the solution?
$ Type "yes" or "no"

If the user types "no," then the maze is displayed without the solution:

If the user makes a typo when typing yes or no, the user will be asked to type yes or no again:

$ Do you want to display the solution?
$ Type "yes" or "no"
$ yu
$ Please type "yes" or "no"

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.