1maze(6x)                      XScreenSaver manual                     maze(6x)
2
3
4

NAME

6       maze  -  an automated X11 demo repeatedly creating and solving a random
7       maze
8

SYNOPSIS

10       maze [-display host:display.screen]  [-foreground  color]  [-background
11       color]  [-window]  [-root] [-install] [-visual visual] [-grid-size pix‐
12       els]  [-live-color  color]  [-dead-color  color]  [-solve-delay  usecs]
13       [-pre-delay    usecs]    [-post-delay   usecs]   [-generator   integer]
14       [-max-length integer] [-bridge] [-no-bridge]
15

DESCRIPTION

17       The maze program creates a "random" maze and then solves it with graph‐
18       ical feedback.
19

OPTIONS

21       maze accepts the following options:
22
23       -window Draw on a newly-created window.  This is the default.
24
25       -root   Draw on the root window.
26
27       -install
28               Install a private colormap for the window.
29
30       -visual visual
31               Specify  which  visual  to use.  Legal values are the name of a
32               visual class, or the id number (decimal or hex) of  a  specific
33               visual.
34
35       -grid-size pixels
36               The  size  of  each block of the maze, in pixels; default is 0,
37               meaning pick a random grid size.
38
39       -live-color color
40               The color of the path.
41
42       -dead-color color
43               The color of the failed path (it is also stippled  with  a  50%
44               pattern.)
45
46       -skip-color color
47               The  maze  solver  will  choose to not go down a path if it can
48               "see" (in a straight line) that it is a dead end.  This is  the
49               color to use for paths that are skipped for this reason.
50
51       -surround-color color
52               If  the maze solver ever completely encloses an area within the
53               maze, then it knows that the exit is not in there (and in  fact
54               the  interior  of  that  area might not even be reachable.)  It
55               will mark out those cells using this color.
56
57       -solve-delay integer
58               Delay (in microseconds) between each step of the solution path.
59               Default 5000, or about 1/200th second.
60
61       -pre-delay integer
62               Delay  (in microseconds) between generating a maze and starting
63               to solve it.  Default 2000000 (2 seconds.)
64
65       -post-delay integer
66               Delay (in microseconds) after solving a maze and before  gener‐
67               ating a new one.  Default 4000000 (4 seconds.)
68
69       -generator num
70               Sets the algorithm that will be used to generate the mazes. The
71               default is -1, which randomly selects  an  algorithm  for  each
72               maze  that  is  generated. Generator 0 is the original one, and
73               works by walking around randomly until we  hit  a  place  we've
74               been before, then backtracking and trying a new direction some‐
75               where. Generator 1 picks a random spot in the maze, then  draws
76               a  straight  wall from that spot in a random direction until it
77               hits another wall (and continues until the maze  is  complete).
78               Generator  2  is based on sets. Initially all cells are in dif‐
79               ferent sets. Then two neighboring cells are chosen and if  they
80               are  in  different sets, their sets are joined. If they were in
81               the same set, a wall is  built  between  them.  This  continues
82               until the maze is complete.
83
84               All  generators generate mazes with a certain 'characteristic'.
85               See if you can spot them!
86
87       -max-length num
88               Controls the maximum length of walls drawn in one go by genera‐
89               tor 1.
90
91       -bridge
92
93       -no-bridge
94               Controls whether or not a 'bridge' will appear over the logo.
95
96       Clicking the mouse in the maze window controls it.
97
98       LeftButton      Clears the window and restarts maze.
99
100       MiddleButton    Pause or unpause the program.
101
102       RightButton     Exit.
103

BUGS

105       Expose events force a restart of maze.
106
107       Mouse  actions are based on "raw" values (Button1, Button2 and Button3)
108       instead of using the pointer map.
109

ENVIRONMENT

111       DISPLAY to get the default host and display number.
112
113       XENVIRONMENT
114               to get the name of a resource file that  overrides  the  global
115               resources stored in the RESOURCE_MANAGER property.
116

SEE ALSO

118       X(1), xscreensaver(1)
119
121       Copyright © 1988 by Sun Microsystems, Inc. Mountain View, CA.
122
123       All Rights Reserved
124
125       Permission  to  use, copy, modify, and distribute this software and its
126       documentation for any purpose and without fee is hereby  granted,  pro‐
127       vided  that  the  above  copyright notice appear in all copies and that
128       both that copyright notice and this permission notice  appear  in  sup‐
129       porting  documentation, and that the names of Sun or MIT not be used in
130       advertising or publicity pertaining to  distribution  of  the  software
131       without specific prior written permission. Sun and M.I.T.  make no rep‐
132       resentations about the suitability of this software for any purpose. It
133       is provided "as is" without any express or implied warranty.
134
135       SUN  DISCLAIMS  ALL  WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
136       ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A  PARTICULAR
137       PURPOSE.  IN  NO EVENT SHALL SUN BE LIABLE FOR ANY SPECIAL, INDIRECT OR
138       CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS  OF
139       USE,  DATA  OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
140       OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE  OR
141       PERFORMANCE OF THIS SOFTWARE.
142

AUTHOR(s)

144       Zack Weinberg [ Smarter maze-solver ] zack@rabi.phys.columbia.edu
145       Johannes Keukelaar [ Generators 1 and 2 ] johannes@nada.kth.se
146         Royal Institute of Technology, Stockholm, Sweden
147       Jim Randell    [ XScreenSaver version ] jmr@mddjmr.fc.hp.com
148         HPLabs, Bristol
149       Richard Hess   [ X11 extensions ]       {...}!uunet!cimshop!rhess
150         Consilium, Mountain View, CA
151       Dave Lemke     [ X11 version ]          lemke@sun.COM
152         Sun MicroSystems, Mountain View, CA
153       Martin Weiss   [ SunView version ]
154         Sun MicroSystems, Mountain View, CA
155
156
157
158X Version 11                 5.05-3 (06-Apr-2008)                     maze(6x)
Impressum