Generate life with your unique token!
This is a variant of the famous "Game of Life" using different colors for longer living cells. Variations also include rounded or squared shapes.
Basic JavaScript Code:
for(c=[d=b*b];d--;c[d]=e==3
||a[d]&&e==2)e=a[d-b-1]+a[d
-b]+a[d-b+1]+a[d-1]+a[d+1]+
a[d+b-1]+a[d+b]+a[d+b+1];