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] [-fps]
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
104       -fps    Display the current frame rate and CPU load.
105

BUGS

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

ENVIRONMENT

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

SEE ALSO

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

AUTHOR(s)

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