version 4 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
XScreenSaver |
|
|
2 |
!!!XScreenSaver |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
BUGS |
|
|
8 |
ENVIRONMENT |
|
|
9 |
SEE ALSO |
|
|
10 |
COPYRIGHT |
|
|
11 |
AUTHOR(s) |
|
|
12 |
---- |
|
|
13 |
!!NAME |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
maze - an automated X11 demo repeatedly creating and solving a random maze |
|
|
17 |
!!SYNOPSIS |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
__maze__ [[-display ''host:display.screen''] |
|
|
21 |
[[-foreground ''color''] [[-background ''color''] |
|
|
22 |
[[-window] [[-root] [[-install] [[-visual ''visual''] |
|
|
23 |
[[-grid-size ''pixels''] [[-live-color ''color''] |
|
|
24 |
[[-dead-color ''color''] [[-solve-delay ''usecs''] |
|
|
25 |
[[-pre-delay ''usecs''] [[-post-delay ''usecs''] |
|
|
26 |
[[-generator ''integer''] [[-max-length ''integer''] |
|
|
27 |
[[-bridge] [[-no-bridge] |
|
|
28 |
!!DESCRIPTION |
|
|
29 |
|
|
|
30 |
|
|
|
31 |
The ''maze'' program creates a |
|
|
32 |
'' |
|
|
33 |
!!OPTIONS |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
''maze'' accepts the following options: |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
__-window__ |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
Draw on a newly-created window. This is the |
|
|
43 |
default. |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__-root__ |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
Draw on the root window. |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__-install__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Install a private colormap for the window. |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
__-visual__ ''visual'' |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
Specify which visual to use. Legal values are the name of a |
|
|
62 |
visual class, or the id number (decimal or hex) of a |
|
|
63 |
specific visual. |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
__-grid-size__ ''pixels'' |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
The size of each block of the maze, in pixels; default is 0, |
|
|
70 |
meaning pick a random grid size. |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
__-live-color__ ''color'' |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
The color of the path. |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
__-dead-color__ ''color'' |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
The color of the failed path (it is also stippled with a 50% |
|
|
83 |
pattern.) |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
__-skip-color__ ''color'' |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
The maze solver will choose to not go down a path if it can |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
__-surround-color__ ''color'' |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
If the maze solver ever completely encloses an area within |
|
|
96 |
the maze, then it knows that the exit is not in there (and |
|
|
97 |
in fact the interior of that area might not even be |
|
|
98 |
reachable.) It will mark out those cells using this |
|
|
99 |
color. |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
__-solve-delay__ ''integer'' |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
Delay (in microseconds) between each step of the solution |
|
|
106 |
path. Default 5000, or about 1/200th second. |
|
|
107 |
|
|
|
108 |
|
|
|
109 |
__-pre-delay__ ''integer'' |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
Delay (in microseconds) between generating a maze and |
|
|
113 |
starting to solve it. Default 2000000 (2 |
|
|
114 |
seconds.) |
|
|
115 |
|
|
|
116 |
|
|
|
117 |
__-post-delay__ ''integer'' |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
Delay (in microseconds) after solving a maze and before |
|
|
121 |
generating a new one. Default 4000000 (4 |
|
|
122 |
seconds.) |
|
|
123 |
|
|
|
124 |
|
|
|
125 |
__-generator__ ''num'' |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
Sets the algorithm that will be used to generate the mazes. |
|
|
129 |
The default is -1, which randomly selects an algorithm for |
|
|
130 |
each maze that is generated. Generator 0 is the original |
|
|
131 |
one, and works by walking around randomly until we hit a |
|
|
132 |
place we've been before, then backtracking and trying a new |
|
|
133 |
direction somewhere. Generator 1 picks a random spot in the |
|
|
134 |
maze, then draws a straight wall from that spot in a random |
|
|
135 |
direction until it hits another wall (and continues until |
|
|
136 |
the maze is complete). Generator 2 is based on sets. |
|
|
137 |
Initially all cells are in different sets. Then two |
|
|
138 |
neighboring cells are chosen and if they are in different |
|
|
139 |
sets, their sets are joined. If they were in the same set, a |
|
|
140 |
wall is built between them. This continues until the maze is |
|
|
141 |
complete. |
|
|
142 |
|
|
|
143 |
|
|
|
144 |
All generators generate mazes with a certain |
|
|
145 |
'characteristic'. See if you can spot them! |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
__-max-length__ ''num'' |
|
|
149 |
|
|
|
150 |
|
|
|
151 |
Controls the maximum length of walls drawn in one go by |
|
|
152 |
generator 1. |
|
|
153 |
|
|
|
154 |
|
|
|
155 |
__-bridge__ |
|
|
156 |
|
|
|
157 |
|
|
|
158 |
__-no-bridge__ |
|
|
159 |
|
|
|
160 |
|
|
|
161 |
Controls whether or not a 'bridge' will appear over the |
|
|
162 |
logo. |
|
|
163 |
|
|
|
164 |
|
|
|
165 |
Clicking the mouse in the maze window controls |
|
|
166 |
it. |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
__!LeftButton__ |
|
|
170 |
|
|
|
171 |
|
|
|
172 |
Clears the window and restarts maze. |
|
|
173 |
|
|
|
174 |
|
|
|
175 |
__!MiddleButton__ |
|
|
176 |
|
|
|
177 |
|
|
|
178 |
Pause or unpause the program. |
|
|
179 |
|
|
|
180 |
|
|
|
181 |
__!RightButton__ |
|
|
182 |
|
|
|
183 |
|
|
|
184 |
Exit. |
|
|
185 |
!!BUGS |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
Expose events force a restart of maze. |
|
|
189 |
|
|
|
190 |
|
|
|
191 |
Mouse actions are based on |
|
|
192 |
!!ENVIRONMENT |
|
|
193 |
|
|
|
194 |
|
|
|
195 |
__DISPLAY__ |
|
|
196 |
|
|
|
197 |
|
|
|
198 |
to get the default host and display number. |
|
|
199 |
|
|
|
200 |
|
|
|
201 |
__XENVIRONMENT__ |
|
|
202 |
|
|
|
203 |
|
|
|
204 |
to get the name of a resource file that overrides the global |
|
|
205 |
resources stored in the RESOURCE_MANAGER |
|
|
206 |
property. |
|
|
207 |
!!SEE ALSO |
|
|
208 |
|
|
|
209 |
|
|
|
210 |
X(1), xscreensaver(1) |
|
|
211 |
!!COPYRIGHT |
|
|
212 |
|
|
|
213 |
|
|
|
214 |
Copyright 1988 by Sun Microsystems, Inc. Mountain View, |
|
|
215 |
CA. |
|
|
216 |
|
|
|
217 |
|
|
|
218 |
All Rights Reserved |
|
|
219 |
|
|
|
220 |
|
|
|
221 |
Permission to use, copy, modify, and distribute this |
|
|
222 |
software and its documentation for any purpose and without |
|
|
223 |
fee is hereby granted, provided that the above copyright |
|
|
224 |
notice appear in all copies and that both that copyright |
|
|
225 |
notice and this permission notice appear in supporting |
|
|
226 |
documentation, and that the names of Sun or MIT not be used |
|
|
227 |
in advertising or publicity pertaining to distribution of |
|
|
228 |
the software without specific prior written permission. Sun |
|
|
229 |
and M.I.T. make no representations about the suitability of |
|
|
230 |
this software for any purpose. It is provided |
|
|
231 |
|
|
|
232 |
|
|
|
233 |
SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
|
|
234 |
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
|
|
235 |
FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE |
|
|
236 |
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR |
|
|
237 |
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
|
|
238 |
PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
|
|
239 |
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH |
|
|
240 |
THE USE OR PERFORMANCE OF THIS SOFTWARE. |
|
|
241 |
!!AUTHOR(s) |
|
|
242 |
|
|
|
243 |
|
|
|
244 |
Zack Weinberg [[ Smarter maze-solver ] zack@rabi.phys.columbia.edu |
|
|
245 |
Johannes Keukelaar [[ Generators 1 and 2 ] johannes@nada.kth.se |
|
|
246 |
Royal Institute of Technology, Stockholm, Sweden |
|
|
247 |
Jim Randell [[ XScreenSaver version ] jmr@mddjmr.fc.hp.com |
|
|
248 |
HPLabs, Bristol |
|
|
249 |
Richard Hess [[ X11 extensions ] {...}!uunet!cimshop!rhess |
|
|
250 |
Consilium, Mountain View, CA |
|
|
251 |
Dave Lemke [[ X11 version ] lemke@sun.COM |
|
|
252 |
Sun !MicroSystems, Mountain View, CA |
|
|
253 |
Martin Weiss [[ !SunView version ] |
|
|
254 |
Sun !MicroSystems, Mountain View, CA |
|
|
255 |
---- |