Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
around solution in Creative category for Moore Neighbourhood by veky
o=lambda s,i:s[i-bool(i):i+2]
count_neighbours=lambda G,i,j:sum(sum(o(r,j))for r in o(G,i))-G[i][j]
Oct. 4, 2014
Comments: