Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
literally Counter solution in Creative category for Life Counter by veky
def life_counter(s,t,E=enumerate):
L={(i,j)for i,r in E(s)for j,c in E(r)if c}
for _ in[0]*t:L={z for z,n in __import__("collections").Counter((a+c,b+d)for
a,b in L for c in{-1,0,1}for d in{-1,0,1}).items()if(z in L)+4>n>2}
return len(L)
Oct. 3, 2014
Comments: