From: Mike Nelson Date: 2006-05-16T03:16:05+09:00 Subject: Re: Conway's Life de-golfed Dave Burt wrote: > Mike Nelson wrote: >> I took some golfed code from a discussion here little while back ( >> http://www.ruby-forum.com/search?query=Golfing+a+signature.&forums%5B%5D=4 >> ) and tried my hand at de-golfing and re-working it a bit to make it >> readable. > > What version did you deobfuscate? This is the orginal version that I worked from, ############################################################################# # http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life # # joey@eachmapinject.com # # j`ey (with thanks to Florian Gross and Dave Burt) # # 305 characters # ############################################################################# s,o,f,c,u=20,"#"," ";b=(z=0..s).map{z.map{(rand<0.3)?o:f}};$><<"\e[2J";until c==b;$><<"\e[H"< I have here the version on J`ey's site, and then a three-line version of > mine. I didn't see that one. I really like the sort.zip part, like this pseudoquote, (m =[-1,0,1]*3).sort.zip(m) - [[0,0]] that's just lovely. -- Posted via http://www.ruby-forum.com/.