14 .TH XScreenSaver 1 "29-Aug-2008" "X Version 11"
16 munch - munching squares
19 [\-display \fIhost:display.screen\fP] [\-foreground \fIcolor\fP]
20 [\-background \fIcolor\fP] [\-window] [\-root] [\-mono] [\-install]
21 [\-visual \fIvisual\fP] [\-delay \fIusecs\fP] [\-xor] [\-noxor]
22 [\-clear \fInumber\fP] [\-simul \fInumber\fP]
23 [\-classic | \-mismunch | \-random]
28 program performs the munching squares hack. It picks square
29 size, position, and gravity randomly. It also displays a
30 creatively broken misimplementation of the classic algorithm.
32 The munching squares hack consists of drawing Y = X XOR T for a range of X
33 and T over and over until all the possible combinations of X and T have
34 come up. It was reportedly discovered by Jackson Wright in 1962 and took 5
35 instructions of PDP-6 code.
38 accepts the following options:
41 Draw on a newly-created window. This is the default.
44 Draw on the root window.
47 If on a color display, pretend we're on a monochrome display.
50 Install a private colormap for the window.
52 .B \-visual \fIvisual\fP
53 Specify which visual to use. Legal values are the name of a visual class,
54 or the id number (decimal or hex) of a specific visual.
56 .B \-delay \fIusecs\fP
57 The delay between steps of the animation, in microseconds. Default: 2500.
60 Use the XOR drawing function. This is the default.
63 Don't use the XOR drawing function.
65 .B \-clear \fInumber\fP
66 Number of squares to misdraw before clearing the display. Default: 65.
68 .B \-simul \fInumber\fP
69 Number of squares to misdraw simultaneously. Default: 5.
72 Draw classic munching squares only.
81 Display the current frame rate and CPU load.
86 to get the default host and display number.
89 to get the name of a resource file that overrides the global resources
90 stored in the RESOURCE_MANAGER property.
95 .BR http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html
97 HAKMEM: MIT AI Memo 239, Feb. 29, 1972.
99 Beeler, M., Gosper, R.W., and Schroeppel, R.
101 "Unless otherwise stated, all computer programs are in PDP-6/10
104 ITEM 146: MUNCHING SQUARES
106 Another simple display program. It is thought that this was discovered by
107 Jackson Wright on the RLE PDP-1 circa 1962.
117 2=X, 3=Y. Try things like 1001002 in data switches. This also does
118 interesting things with operations other than XOR, and rotations other
119 than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...)
122 ITEM 147 (Schroeppel):
124 Munching squares is just views of the graph Y = X XOR T for consecutive
127 ITEM 148 (Cohen, Beeler):
129 A modification to munching squares which reveals them in frozen states
130 through opening and closing curtains: insert FADR 2,1 before the XOR. Try
134 4000,,4 1000,,2002 2000,,4 0,,1002
137 (Notation: <left half>,,<right half>)
139 Also try the FADR after the XOR, switches = 1001,,1.
141 Copyright 1997 Tim Showalter.
143 Copyright 2004 Steven Hazel.
145 Copyright 1992-2008 Jamie Zawinski.
147 Permission to use, copy, modify, distribute, and sell this software
148 and its documentation for any purpose is hereby granted without fee,
149 provided that the above copyright notice appear in all copies and that
150 both that copyright notice and this permission notice appear in
151 supporting documentation. No representations are made about the
152 suitability of this software for any purpose. It is provided "as is"
153 without express or implied warranty.