Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Moore Neighbourhood solution in Clear category for Moore Neighbourhood by weroniquue
def count_neighbours(grid, row, col):
otoczenie=((-1,0),
(-1,-1),
(0,-1),
(1,-1),
(1,0),
(1,1),
(0,1),
(-1,1))
sasiedzi=0
for i in otoczenie:
row1=row+i[0]
col1=col+i[1]
if (row1>=0 and row1=0 and col1
Nov. 19, 2016