munch
munching squares
- Provided by: xscreensaver-data-extra (Version: 5.34-2ubuntu1)
- Source: xscreensaver
- Report a bug
munching squares
munch [-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]
The 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.
munch accepts the following options:
HAKMEM: MIT AI Memo 239, Feb. 29, 1972.
"Unless otherwise stated, all computer programs are in PDP-6/10 assembly language."
Another simple display program. It is thought that this was discovered by Jackson Wright on the RLE PDP-1 circa 1962.
DATAI 2
ADDB 1,2
ROTC 2,-22
XOR 1,2
JRST .-4
Munching squares is just views of the graph Y = X XOR T for consecutive values of T = time.
A modification to munching squares which reveals them in frozen states through opening and closing curtains: insert FADR 2,1 before the XOR. Try data switches =
4000,,4 1000,,2002 2000,,4 0,,1002
Copyright 1997 Tim Showalter.
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.