|
NAMEmunch - munching squaresSYNOPSISmunch [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual] [-delay usecs] [-xor] [-noxor] [-clear number] [-simul number] [-classic | -mismunch | -random] [-fps]DESCRIPTIONThe munch program performs the munching squares hack. It picks square size, position, and gravity randomly. It also displays a creatively broken misimplementation of the classic algorithm.The munching squares hack consists of drawing Y = X XOR T for a range of X and T over and over until all the possible combinations of X and T have come up. It was reportedly discovered by Jackson Wright in 1962 and took 5 instructions of PDP-6 code. OPTIONSmunch accepts the following options:
ENVIRONMENT
SEE ALSOX(1), xscreensaver(1),http://www.inwap.com/pdp10/hbaker/hakmem/hakmem.html
HISTORYHAKMEM: MIT AI Memo 239, Feb. 29, 1972.Beeler, M., Gosper, R.W., and Schroeppel, R.
"Unless otherwise stated, all computer programs are in PDP-6/10 assembly language."
2=X, 3=Y. Try things like 1001002 in data switches. This
also does interesting things with operations other than XOR, and rotations
other than -22. (Try IOR; AND; TSC; FADR; FDV(!); ROT -14, -9, -20, ...)
(Notation: <left half>,,<right half>)
Also try the FADR after the XOR, switches =
1001,,1.
COPYRIGHTCopyright 1997 Tim Showalter.Copyright 2004 Steven Hazel.
Copyright 1992-2008 Jamie Zawinski.
Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Visit the GSP FreeBSD Man Page Interface. |