diff --git a/examples/conways_game_of_life_fast/app.py b/examples/conways_game_of_life_fast/app.py index ccdf3c26..c5001821 100644 --- a/examples/conways_game_of_life_fast/app.py +++ b/examples/conways_game_of_life_fast/app.py @@ -34,7 +34,7 @@ "max": 1, "step": 0.01, }, - "randomize_new_cells": { # New parameter for manual adjustment + "randomize_new_cells": { # New parameter for manual adjustment "type": "SliderFloat", "value": 0.05, # The initial probability of reviving new cells "label": "New Cells Randomization", diff --git a/examples/conways_game_of_life_fast/model.py b/examples/conways_game_of_life_fast/model.py index 0c10bc40..67535ec5 100644 --- a/examples/conways_game_of_life_fast/model.py +++ b/examples/conways_game_of_life_fast/model.py @@ -35,7 +35,7 @@ def step(self): # Count neighbors using convolution neighbor_count = convolve2d(self.cell_layer.data, kernel, mode="same", boundary="wrap") - """ Changing the behavior of cells so that they can "die from overpopulation" + """ Changing the behavior of cells so that they can "die from overpopulation" if there are more than 4 living neighbors around them. """ # Apply Game of Life rules with overpopulation death: