Traverse a maze recursively. Your program MUST read from a file called "maze.dat". A sample (Links to an external site.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Traverse a maze recursively. Your program MUST read from a file called "maze.dat". A sample (Links to an external site.

Post by answerhappygod »

Traverse a maze recursively. Yourprogram MUST read from a file called"maze.dat".
A sample (Links to an external site.)maze hasbeen provided. The actual maze will belarger. The start and end of the maze are represented withthecharacters + and -, respectively. The first line ofthe maze file will be the numberof rows and columns, respectively.
As your program moves through the maze the current pathshouldalso be marked with the + character. Any path leadingtoa dead end should be marked with the . character.
Upon reaching the end of the maze your program should printamessage to the screen stating that the maze was solved.If your program does not find the exit this should also bestated.All messages, and a print out of the solution, if one isfound,should be to the screen.
Here is the actual maze (Links to an externalsite.)file that will be used to testyour programs.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply