Defines a small applet that draws mazes built using a variety of generating algorithms and a selection of geometries. This is a kind of tour-de-force in the Strategy design pattern.
There are two geometries for the maze.
There are three filler algorithms.
The algorithm is parameterized with a branching factor. A 100% branching factor leads to very short sections between intersections. A 0% branching factor leads to a boring maze - more of a path.
A filler algorithm can also have a plug in storage mechanism.
This applet can be displayed using any of the following approaches.
This applet uses the following parameters.
The following shows the HTML <applet> embedding for this applet.
<applet code="maze/MazeApp.class" width=320 height=340 archive="mazemaker.jar">
<param name=h value="12">
<param name=v value="12">
<param name=fill value="depth">
<param name=strategy value="Kinked">
<param name=branch value="50">
<param name=tiling value="Hex">
</applet>
The following shows the dynamic versioning HTML <object> embedding for this applet.
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="320" height="340" align="baseline"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">
<PARAM name="code" value="maze/MazeApp.class">
<PARAM name="archive" value="mazemaker.jar">
<PARAM name="type" value="application/x-java-applet;version=1.4">
<PARAM name="scriptable" value="true">
<param name=h value="12">
<param name=v value="12">
<param name=fill value="depth">
<param name=strategy value="Kinked">
<param name=branch value="50">
<param name=tiling value="Hex">
<i>Either this is not IE, or there is no Java 2 SDK, Standard Edition v 1.4.x support.</i>
</OBJECT>
The following shows the HTML <embed> embedding for this applet.
<EMBED type="application/x-java-applet;version=1.4" scriptable=true
width="320" height="340" align="baseline"
code="maze/MazeApp.class" archive="mazemaker.jar"
pluginspage="http://java.sun.com/j2se/1.4.1/download.html"
h="12"
v="12"
fill="depth"
strategy="Kinked"
branch="50"
tiling="Hex">
<NOEMBED>
<i>Either this is IE, or there is no Java 2 SDK, Standard Edition v 1.4.x support enabled.</i>
</NOEMBED>
</EMBED>