Question: Question 3 ) Maze ( 3 0 % ) You are going to design a maze program. It loads a maze from a maze text
Question Maze
You are going to design a maze program. It loads a maze from a maze text file then program walks through the maze and finds the path from starting vertex to the exiting vertex.
Maze text file format:
Number of edges, Number of columns, number of rows Header of maze
Vertexs name, x position, y position, next linked vertexs name, next linked vertexs name
Vertexs name, x position, y position, next linked vertexs name, next linked vertexs name
Example:
START,BA
BCK
CDE
VNA
EXIT,AA
A is the same as null. It means not next linked vertex 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. You need to show an animation of how your program finds a 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
make sure your program works for both txt files. GUI is provided. A jar file is created.
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
