Skip to content
Snippets Groups Projects
Commit b3ac8a85 authored by Quentin Bolsee's avatar Quentin Bolsee
Browse files

Update README.md

parent 2845a150
Branches
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ def step(grid):
"""
computes one step of Conway's game of life on a toroidal 2D grid
"""
count = np.zeros(a.shape, dtype=np.uint8)
count = np.zeros(grid.shape, dtype=np.uint8)
count[:, :] = grid
# sum all 8 neighbors
count += np.roll(grid, 1, axis=0) + np.roll(grid, -1, axis=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment