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
in java please the file name will be Main.java so please make the class name Main the sample the actual maze
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
in java please the file name will be Main.java so please make the class name Main the sample the actual maze
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!