maze accepts the following options:
Draw on a newly-created window. This is the default.
Draw on the root window.
Install a private colormap for the window.
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
The size of each block of the maze, in pixels; default is 0, meaning pick a random grid size.
The color of the path.
The color of the failed path (it is also stippled with a 50% pattern.)
The maze solver will choose to not go down a path if it can
If the maze solver ever completely encloses an area within the maze, then it knows that the exit is not in there (and in fact the interior of that area might not even be reachable.) It will mark out those cells using this color.
Delay (in microseconds) between each step of the solution path. Default 5000, or about 1/200th second.
Delay (in microseconds) between generating a maze and starting to solve it. Default 2000000 (2 seconds.)
Delay (in microseconds) after solving a maze and before generating a new one. Default 4000000 (4 seconds.)
Sets the algorithm that will be used to generate the mazes. The default is -1, which randomly selects an algorithm for each maze that is generated. Generator 0 is the original one, and works by walking around randomly until we hit a place we've been before, then backtracking and trying a new direction somewhere. Generator 1 picks a random spot in the maze, then draws a straight wall from that spot in a random direction until it hits another wall (and continues until the maze is complete). Generator 2 is based on sets. Initially all cells are in different sets. Then two neighboring cells are chosen and if they are in different sets, their sets are joined. If they were in the same set, a wall is built between them. This continues until the maze is complete.
All generators generate mazes with a certain 'characteristic'. See if you can spot them!
Controls the maximum length of walls drawn in one go by generator 1.
Controls whether or not a 'bridge' will appear over the logo.
Clicking the mouse in the maze window controls it.
Clears the window and restarts maze.
Pause or unpause the program.
Expose events force a restart of maze.
to get the default host and display number.
Copyright 1988 by Sun Microsystems, Inc. Mountain View, CA.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the names of Sun or MIT not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. Sun and M.I.T. make no representations about the suitability of this software for any purpose. It is provided
lib/main.php:944: Notice: PageInfo: Cannot find action page