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

Update file main.py

parent b3ac8a85
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,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 loo.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