Skip to content

A Java application that implements path finding on a randomly generated maze

Notifications You must be signed in to change notification settings

kritgrover/path-finding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Path Finding using a Maze

A program made using Java that implements basic path finding and other operations on a randomly generated maze.

Operations:

  • Generate a New Maze
  • Load Maze from Existing File
  • Save Maze to File
  • Display Loaded Maze
  • Find Escape

Working:

  • Once Main.java is run, the user is prompted with 2 options,
    • Generate new maze
    • Load maze from existing file

Menu_Initial


  • If new maze is to be generated, the user is asked to enter an integer as input for the dimensions of the maze. The generate() function from Maze.java is triggered and a new square maze of specified dimensions is created.

Generating Maze


  • If maze is to be loaded, user is asked to enter the path of the file that is used for importing the maze. Errors are handled.

Failed Load Method Successful Load Method


  • Once the maze has been loaded into the program from either of the mentioned options, the maze object in Main.java is updated and other operations are made available for use.

Menu_Final


  • The user is now prompted to perform any of the operations that were mentioned earlier. All the operations are coded in the 'Maze.java' file in the 'src' directory.

Displaying Maze Finding Escape


  • User can save the maze to a file before terminating the program.

Save Output Saved File


  • When done, the program can be terminated by using the Exit option from the Menu.

Exiting Program

About

A Java application that implements path finding on a randomly generated maze

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages