in java please the file name will be Main.java so please make the class name Main the sample the actual maze
Posted: Thu Jul 14, 2022 2:17 pm
in java please the file name will be Main.java so please make the class name Main
the sample
the actual maze
Traverse a maze recursively. Your program MUST read from a file called "maze.dat". A sample maze has been provided. 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.
4141 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
47131
the sample
the actual maze
Traverse a maze recursively. Your program MUST read from a file called "maze.dat". A sample maze has been provided. 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.
4141 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
47131