Skip to content

Commit fc18ece

Browse files
committed
GoL_fast: Remove advance_time()
`steps` is now increased automatically, it's not needed anymore!
1 parent be57796 commit fc18ece

File tree

1 file changed

+0
-1
lines changed
  • examples/conways_game_of_life_fast

1 file changed

+0
-1
lines changed

examples/conways_game_of_life_fast/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def __init__(self, width=10, height=10, alive_fraction=0.2):
2424
self.datacollector.collect(self)
2525

2626
def step(self):
27-
self._advance_time()
2827
# Define a kernel for counting neighbors. The kernel has 1s around the center cell (which is 0).
2928
# This setup allows us to count the live neighbors of each cell when we apply convolution.
3029
kernel = np.array([[1, 1, 1],

0 commit comments

Comments
 (0)