Skip to content

Commit a87d672

Browse files
Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <[email protected]>
1 parent 9d8afeb commit a87d672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cellular_automata/wa_tor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ def __init__(self, width: int, height: int) -> None:
124124

125125
# Populate planet with predators and prey randomly
126126
for _ in range(PREY_INITIAL_COUNT):
127-
self.add_entity(True)
127+
self.add_entity(prey=True)
128128
for _ in range(PREDATOR_INITIAL_COUNT):
129-
self.add_entity(False)
129+
self.add_entity(prey=False)
130130
self.set_planet(self.planet)
131131

132132
def set_planet(self, planet: list[list[Entity | None]]) -> None:

0 commit comments

Comments
 (0)