Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
WET solution in Creative category for Moore Neighbourhood by veky
count_neighbours=lambda G,r,c:sum(sum(R[c-(c>0):c+2])for R in G[r-(r>0):r+2])-G[r][c]
March 1, 2015
Comments: