A: This is a simple java applet that mimics maze patterns. You can change the size of each leg by changing the values in the upper left corner. After which you can click anywhere in the rectangular region and press the "Start" button for the computer to begin it's journey to the exit. The rules are simple, the applet takes turns from a vertical line to a horizontal line. It's direction is random and it can circle back on itself. the length of the lines are determined by the values in the (x, y) text boxes on the upper left corner. With these rules you can get these real neat designs. Try using small numbers and you'll see that it almost looks like continents. This version adds the number of Elapsed Seconds to completion, Calculations per second and Solving data.
The purpose of this applet is to be able to solve the maze (find the exit point). Basically, the computer finds uncharted teritory (depth , then breadth) and
when it gets stuck, it searches for an open path randomly until it finds the exit. The solving data will show when the exit has been found, Time to Solve, Number of Calculations (Loops), and the Direction in realtime. On big mazes, you'll see the direction indicators flicker, especially when it goes into random mode. The abbreviations are Right (r), Down (d), Left(l), Up(u), Random Right (Rr), Random Down (Rd), Random Left (Rl), Random Up (Ru).
|