Question: Traverse a maze recursively. Your program MUST read from a file called maze.dat. A sample maze has been providedf The actual maze will be larger.
Traverse a maze recursively. Your program MUST read from a file called "maze.dat".
A sample maze has been providedf The actual maze will be larger. The start and end of the maze are represented with the characters and respectively. The first line of the maze file will be the number of rows and columns, respectively.
As your program moves through the maze the current path should also be marked with the character. Any path leading to a dead end should be marked with the character.
Upon reaching the end of the maze your program should print a message to the screen stating that the maze was solved.
If your program does not find the exit this should also be stated.
All messages, and a print out of the solution, if one is found, should be to the screen.
Here is the actual maze file that will be used to test your programs.
Only submit one file named Main.java.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
