source: trunk/third/xscreensaver/hacks/maze.man @ 12203

Revision 12203, 5.5 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12202, which included commits to RCS files with non-trunk default branches.
Line 
1.TH XScreenSaver 1 "7-mar-93" "X Version 11"
2.SH NAME
3maze \- an automated X11 demo repeatedly creating and solving a random maze
4.SH SYNOPSIS
5.B maze
6[\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP] [\-background \fIcolor\fP] [\-window] [\-root] [\-install] [\-visual \fIvisual\fP] [\-grid\-size \fIpixels\fP] [\-live\-color \fIcolor\fP] [\-dead\-color \fIcolor\fP] [\-solve\-delay \fIusecs\fP] [\-pre\-delay \fIusecs\fP] [\-post\-delay \fIusecs\fP] [\-generator \fIinteger\fP] [\-max\-length \fIinteger\fP] [\-bridge] [\-no\-bridge]
7.SH DESCRIPTION
8The \fImaze\fP program creates a "random" maze and then solves it with
9graphical feedback.
10.SH OPTIONS
11.I maze
12accepts the following options:
13.TP 8
14.B \-window
15Draw on a newly-created window.  This is the default.
16.TP 8
17.B \-root
18Draw on the root window.
19.TP 8
20.B \-install
21Install a private colormap for the window.
22.TP 8
23.B \-visual \fIvisual\fP
24Specify which visual to use.  Legal values are the name of a visual class,
25or the id number (decimal or hex) of a specific visual.
26.TP 8
27.B \-grid\-size \fIpixels\fP
28The size of each block of the maze, in pixels; default is 0, meaning
29pick a random grid size.
30.TP 8
31.B \-live\-color \fIcolor\fP
32The color of the path.
33.TP 8
34.B \-dead\-color \fIcolor\fP
35The color of the failed path (it is also stippled with a 50% pattern.)
36.TP 8
37.B \-skip\-color \fIcolor\fP
38The maze solver will choose to not go down a path if it can "see" (in a
39straight line) that it is a dead end.  This is the color to use for paths
40that are skipped for this reason.
41.TP 8
42.B \-surround\-color \fIcolor\fP
43If the maze solver ever completely encloses an area within the maze, then
44it knows that the exit is not in there (and in fact the interior of that
45area might not even be reachable.)  It will mark out those cells using this
46color.
47.TP 8
48.B \-solve\-delay \fIinteger\fP
49Delay (in microseconds) between each step of the solution path.
50Default 5000, or about 1/200th second.
51.TP 8
52.B \-pre\-delay \fIinteger\fP
53Delay (in microseconds) between generating a maze and starting to solve it.
54Default 2000000 (2 seconds.)
55.TP 8
56.B \-post\-delay \fIinteger\fP
57Delay (in microseconds) after solving a maze and before generating a new one.
58Default 4000000 (4 seconds.)
59.TP 8
60.B \-generator \fInum\fP
61Sets the algorithm that will be used to generate the mazes. The
62default is \-1, which randomly selects an algorithm for each maze that
63is generated. Generator 0 is the original one, and works by walking
64around randomly until we hit a place we've been before, then
65backtracking and trying a new direction somewhere. Generator 1 picks a
66random spot in the maze, then draws a straight wall from that spot in
67a random direction until it hits another wall (and continues until the
68maze is complete). Generator 2 is based on sets. Initially all cells
69are in different sets. Then two neighboring cells are chosen and if
70they are in different sets, their sets are joined. If they were in the
71same set, a wall is built between them. This continues until the maze is
72complete.
73
74All generators generate mazes with a certain 'characteristic'. See if you
75can spot them!
76.TP 8
77.B \-max\-length \fInum\fP
78Controls the maximum length of walls drawn in one go by generator 1.
79.TP 8
80.B \-bridge
81.TP 8
82.B \-no\-bridge
83Controls whether or not a 'bridge' will appear over the logo.
84.PP
85Clicking the mouse in the maze window controls it.
86.TP 16
87.B "LeftButton
88Clears the window and restarts maze.
89.TP 16
90.B MiddleButton
91Pause or unpause the program.
92.TP 16
93.B RightButton
94Exit.
95.SH BUGS
96Expose events force a restart of maze.
97
98Mouse actions are based on "raw" values (Button1, Button2 and Button3)
99instead of using the pointer map.
100.SH ENVIRONMENT
101.PP
102.TP 8
103.B DISPLAY
104to get the default host and display number.
105.TP 8
106.B XENVIRONMENT
107to get the name of a resource file that overrides the global resources
108stored in the RESOURCE_MANAGER property.
109.SH SEE ALSO
110.BR X (1),
111.BR xscreensaver (1)
112.SH COPYRIGHT
113.PP
114Copyright \(co 1988 by Sun Microsystems, Inc. Mountain View, CA.
115.PP 
116All Rights Reserved
117.PP
118Permission to use, copy, modify, and distribute this software and its
119documentation for any purpose and without fee is hereby granted, provided that
120the above copyright notice appear in all copies and that both that copyright
121notice and this permission notice appear in supporting documentation, and that
122the names of Sun or MIT not be used in advertising or publicity pertaining to
123distribution of the software without specific prior written permission. Sun
124and M.I.T.  make no representations about the suitability of this software for
125any purpose. It is provided "as is" without any express or implied warranty.
126.PP
127SUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
128IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN
129NO EVENT SHALL SUN BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
130DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
131WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
132OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
133.SH AUTHOR(s)
134.nf
135Zack Weinberg [ Smarter maze-solver ] zack@rabi.phys.columbia.edu
136Johannes Keukelaar [ Generators 1 and 2 ] johannes@nada.kth.se
137  Royal Institute of Technology, Stockholm, Sweden
138Jim Randell     [ XScreenSaver version ] jmr@mddjmr.fc.hp.com
139  HPLabs, Bristol
140Richard Hess    [ X11 extensions ]      {...}!uunet!cimshop!rhess
141  Consilium, Mountain View, CA
142Dave Lemke      [ X11 version ]         lemke@sun.COM
143  Sun MicroSystems, Mountain View, CA
144Martin Weiss    [ SunView version ]
145  Sun MicroSystems, Mountain View, CA
146.fi
Note: See TracBrowser for help on using the repository browser.