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, x position, y position, next linked node name, next linked node name Node's name, x position, y position, next linked node name, next linked node name Example: 22,7,6 START ,0,2, Br? A B, 1,2,C,K C,1,3,D,E
V,4,1, N,?A EXIT, 6,2, A, A "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 22,7,6 START, ?,2,B,A B,1,2,C,K C,1,3,D,ED,1,4,A,AE,2,3,F,JF,2,4,G,HG,2,5,A,AH,3,4,A,I? I,4,4,A,A J,2,2,A,AK,1,1,L,AL,2,1,N,MM,2,?,A,AN,3,1,0,A0,3,2,A,PP,4,2,Q,VQ,4,3,R,SR,3,3,A,AS,5,3,T,UT,5,4,A,AU,5,2,W,AV,4,1,A,A? EXIT ,6,2,A,A
Maze2.txt - Notepad File Edit Format View Help 24,7,6 START, ?,2,B,A B,1,2,C,KC,1,3,D,ED,1,4,A,AE,2,3,F,J F,2,4,G,HG,2,5,A,AH,3,4,A,I I, 4, 4, A, A ],2,2,A,A K,1,1, L, AL,2,1,N,MM,2,0,A,A N,3,1,0, A0,3,2,A,PP,4,2,Q,VQ,4,3,R,SR,3,3,A,0 S,5,3, T,UT,5,4,A,A U, 5, 2, W, A V,4,1, N, A EXIT, 6, 2, A, A ?