Question: JavaFx Programming MAZE Project This project has 3 sections: Maze class Command Line program GUI that uses Maze Class . 1) Write a Maze class
JavaFx Programming
MAZE Project
This project has 3 sections:
Maze class
Command Line program
GUI that uses Maze Class
.
1) Write a Maze class with the following requirements:
Takes any two-dimensional array that represents a maze: 0s (zeros) for the walls, and 1s for the available paths.
There will be only one constructor that takes a two-dimensional array
A method named displayMaze should print the maze (bird-view) that shows the walls and the available paths, and the path taken so far (if any)
A method named takeStep that takes one step each time when it is called and displays the maze again. Use the algorithm that checks right turn first. And keeps checking counter-clockwise until finds a path.
A method named findExit runs and finds the solution all the way to the exit and displays the maze showing the suggested path
Assume that entry point of the maze is always the first row (row 0) and the third column (column 2) and the first move direction is south.
Test program is given for your testing
The program should work with any Maze including different size of maze.
2) Test Program1: Start with a command line program without GUI. Sample display of the maze (note that this one has a bottom row entrance instead of top row)
Sample output after taking some steps. ~ represents the path towards solution, @ represents a mouse.

A view from the command window at IntelliJ
GUI:
Please use your creativity with images, shapes, animations. You will need to add JavaFX class(es) to create a GUI.
Sample maze:
{0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0}, {0,0,1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0}, {0,0,1,1,1,1,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,1,0}, {0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0}, {0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0}, {0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0}, {0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}};
Cammand Promat 09/07/2016 09:54 AM 09/06/2016 10:34 PM 09/07/2016 11:28 AM 09/06/2016 10:34 PM 1,832 Maze.class 2,320 Maze.java 3,531 TestMaze.class 1,894 TestMaze.java 9,577 bytes 4 File(s) 2 Dir(s) 21,077,889,024 bytes free C:\Java mazelsrc>java TestMaze C:\Java maze\src> C:Java\maze\src> Cammand Promat 09/07/2016 09:54 AM 09/06/2016 10:34 PM 09/07/2016 11:28 AM 09/06/2016 10:34 PM 1,832 Maze.class 2,320 Maze.java 3,531 TestMaze.class 1,894 TestMaze.java 9,577 bytes 4 File(s) 2 Dir(s) 21,077,889,024 bytes free C:\Java mazelsrc>java TestMaze C:\Java maze\src> C:Java\maze\src>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
