Skip to content

Commit 9289b51

Browse files
CaedenPHcclauss
andauthored
Update cellular_automata/wa_tor.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 0765948 commit 9289b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cellular_automata/wa_tor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, width: int, height: int) -> None:
121121
self.time_passed = None
122122

123123
self.planet: list[list[Entity | None]] = [
124-
[None for _ in range(width)] for _ in range(height)
124+
[None] * width for _ in range(height)
125125
]
126126

127127
# Populate planet with predators and prey randomly

0 commit comments

Comments
 (0)