The program reads a maze from a file whose name will be given on the java command line, and initially display it to the graphics window. When the user hits any key, it will display the maze with a path through it shown in blue, or just the original maze if there is no possible path from the entrance to the exit. The program that takes as input (from a text file) a maze with the following format: 9 10 0111111111 0110000000 0000111110 1011101010 1000001000 1011011101 1010001111 0000100000 1111111110 5 8 8 9 The first line gives the total size of the maze to come; this is a maze with 9 rows and 10 columns. On the following lines, a 1 in a particular position means that there's a wall at that position. A 0 in a particular position means that that position is free. The last two lines of the file are the maze coordinates for the entry location, followed by the maze coordinates for the exit location.
The program reads a maze from a file whose name will be given on the java command line, and initially display it to the graphics window. When the user hits any key, it will display the maze with a path through it shown in blue, or just the original maze if there is no possible path from the entrance to the exit.
kavishjadwani/Maze-Solver
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
The program reads a maze from a file whose name will be given on the java command line, and initially display it to the graphics window. When the user hits any key, it will display the maze with a path through it shown in blue, or just the original maze if there is no possible path from the entrance to the exit.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published