Maze Applet
As part of my first year programming unit at University, I had to design and implement a program that randomly generates a maze of any size and then solves it. I decided to turn the program into an applet and here it is.
In September 2001 I re-programmed the entire Maze class to use a new technique for generating mazes, as the original technique I used for my coursework project did not generate full mazes. This new technique generally does, especially with larger mazes.
The applet uses its height and width to determine what size maze to create. It also centres the maze and associated text horizontally.
Click "Create Maze" to randomly generate a new maze and click "Solve Maze" to highlight the route through the maze.
|