Skip to content

Commit

Permalink
GoL_fast: Add default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutH committed Aug 29, 2024
1 parent 224530b commit 88127e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/conways_game_of_life_fast/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# fmt: off
class GameOfLifeModel(Model):
def __init__(self, width, height, alive_fraction=0.2):
def __init__(self, width=10, height=10, alive_fraction=0.2):
super().__init__()
# Initialize the property layer for cell states
self.cell_layer = PropertyLayer("cells", width, height, False, dtype=bool)
Expand Down

0 comments on commit 88127e6

Please sign in to comment.