Conway's Game of Life in 140 bytes Ruby(gist.github.com)
gist.github.com
Conway's Game of Life in 140 bytes Ruby
https://gist.github.com/1761463
11 comments
Off the top of my head, some simple ways to make this shorter:
I really should have refreshed the comments page before shortening... seems like we think similarly: https://gist.github.com/1803557
And in APL:
life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
And in 131 characters of Perl: https://gist.github.com/1803656
What do I win?
What do I win?
Actually, what I /really/ won was the happy feeling I got from abusing $a and $b even though it runs under strict.
It's all ASCII... If you're using octets for each character, you can definitely still squeeze a few bytes out of that.
Those interested in this post may like the examples on this page:
http://codegolf.stackexchange.com/questions/3434/shortest-ga...
[deleted]