Sorry, your browser does not support Java.

This web page is a Java applet to play a maze game.  The computer creates a random maze.  The exit is marked by blue and white boxes.  Your position is marked by a blue circle.  Use the arrow keys or the mouse to move towards the exit.  You may have to reposition your mouse if you bump into walls!

There are no monsters or obstacles in the maze.  Your view is limited by a "fog" that shows only nearby positions and positions that you have already visited.

If you can't solve the maze, then click the "Show Me" button to see the path to the exit.


If this web page begins with an error message saying that your browser does not support Java, then either your computer doesn't have Java, or Java is not enabled.  If you see an empty rectangle where the applet should be, then you have Java but need a newer browser or a newer version of Java.  For Internet Explorer 5 or later, Firefox, Mozilla, and Netscape 7.x or later on Windows, you may download the Sun Java run-time environment (JRE) from http://www.java.com/getjava/ on Sun's web site.  This program was written on and tested against Sun Java 1.4.

The source code for this applet is available, even though writing a similar Java program is an assignment for students, and I'm sure that some students won't do their own homework.  (Hint: I made up my own rules as I went along, to make the game interesting and easy to program.)  You may also download the application as a ZIP archive with the executable Java class files and the documentation in Adobe Acrobat PDF format.  More programming assignments and solutions can be found on my "Computer Programming Examples" web page.

Copyright (c) 2004 by Keith Fenske.  Released under the GNU General Public License (GPL).