Mini Game of Life v.0.3

A game of life engine in 130 bytes of JavaScript

/* Fill an array with 0's and 1's, and call g(array, width, height) */
g=function(f,c,g,d,e,b,h){g=[];e=[c+1,c,c-1,1];for(b=c*c;b--;g[b]=3==d||f[b]&&2==d,d=0)for(h in e)d+=f[b+e[h]]+f[b-e[h]];return g}




1 - Draw or load a pattern:

2 - Iterate





2013 - Maxime Euzière