An implementation of Conway's Game of Life in less than 140 bytes of JavaScript.
See the demo: http://jsfiddle.net/aemkei/wdRcc/show/
life (
input, // input array
size // size (width and height) of stage
)
// returns the modificated input string
Created by Martin Kleppe (@aemkei) at Ubilabs.
See the 140byt.es site for a showcase of entries (built itself using 140-byte entries!), and follow @140bytes on Twitter.
I know: The wrapping is not perfect - but flattening the two dimensional array did the trick to get it into 140 bytes. So, feel free to tweak the code!