On Mar 7, 2007, at 7:57 AM, ramacd wrote:

The article "Life: nasty, Brutish and Short" by(?) Eugene McDonnell, in an old Quote Quad, I think, gives many one-liners as well. IIRC, it uses the Sharp APL cut operator, which is very similar to the ;. conjunction in J. This separates out the 3 3 subarrays, and you can just apply the life/death
verb to each subarray.

The APL88 Conference Proceedings (Sydney, Australia; APL Quote Quad, 18.2, December 1987) has my discussion of a "Life: Nasty, Brutish and Short" solution to the game of life program problem [pp 242-247], with thanks to Donald Knuth and Roger Hui. The final N,B and S solution uses just 9 tokens.

Is it really 19 years since I wrote it? It was lots of fun.

Eugene


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to