Home / Expert Answers / Computer Science / you-are-going-to-design-a-program-it-loads-a-maze-from-a-maze-text-file-then-program-walks-through-pa135

(Solved): You are going to design a program. It loads a maze from a maze text file then program walks through ...



You are going to design a program. It loads a maze from a maze text file then program walks through the maze and finds the pa\( \mathrm{V}, 4,1, \mathrm{~N}_{,} \mathrm{A} \)
EXIT, \( 6,2, \mathrm{~A}, \mathrm{~A} \)
A is the same as null. It meansMaze1.txt - Notepad
File Edit Format View Help
\[
22,7,6
\]
\[
\text { START, } \theta, 2, B, A
\]
\[
\mathrm{B}, 1,2, \mathrMaze2.txt - Notepad
File Edit Format View Help
\[
\begin{array}{l}
24,7,6 \\
\text { START, } \theta, 2, B, A \\
\mathrm{~B},
You are going to design a program. It loads a maze from a maze text file then program walks through the maze and finds the path from starting node to the exiting node. Maze text file format: Number of linkers, Number of columns, number of rows (Header of maze) Node's name, position, y position, next linked node name, next linked node name Node's name, position, y position, next linked node name, next linked node name Example: START B, EXIT, "A" is the same as null. It means not next linked node on this path (this path has no exit). "W" links to exit. Your task is to write a program. The program does: - Loads a maze txt files (there are two txt files) - Draws a maze on the panel (You are going to decide how to label the nodes). - Walk through the maze and find path from start to exit. - Highlight the path from start to exit and display the path on the panel. - nodes' names of the path are displayed in order from "Start" to "Exit". - GUl is provided. - A jar file is created. There are two maze text files, make sure your program works for both. Maze1.txt - Notepad File Edit Format View Help EXIT Maze2.txt - Notepad File Edit Format View Help


We have an Answer from Expert

View Expert Answer

Expert Answer



Here is the code in python for the given requirements as you didn't mention any specific programing language so the code is in python:




Usually, when you run this code, it will load the maze, solve it using the depth-first search, and print the maze along with the path from the starting node to the exiting node directly in to the console. The path will be displayed as a sequence of node names, starting from the "START" node and ending at the "EXIT" node.


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe