Skip to content

Commit d277dba

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

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
@@ -54,7 +54,7 @@ def __init__(self, prey: bool, coords: tuple[int, int]) -> None:
5454
self.coords = coords
5555

5656
self.remaining_reproduction_time = (
57-
PREY_REPRODUCTION_TIME if prey is True else PREDATOR_REPRODUCTION_TIME
57+
PREY_REPRODUCTION_TIME if prey else PREDATOR_REPRODUCTION_TIME
5858
)
5959
self.energy_value = None if prey is True else PREDATOR_INITIAL_ENERGY_VALUE
6060
self.alive = True

0 commit comments

Comments
 (0)