Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
My Simple Solution solution in Clear category for Moore Neighbourhood by wnormandin
def count_neighbours(grid, row, col):
retval = 0
z = [-1, 0, 1]
for v in z:
if row+v>=0 and row+v=0 and col+x
Dec. 9, 2015