Skip to content

Commit a07a70e

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

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
@@ -56,7 +56,7 @@ def __init__(self, prey: bool, coords: tuple[int, int]) -> None:
5656
self.remaining_reproduction_time = (
5757
PREY_REPRODUCTION_TIME if prey else PREDATOR_REPRODUCTION_TIME
5858
)
59-
self.energy_value = None if prey is True else PREDATOR_INITIAL_ENERGY_VALUE
59+
self.energy_value = None if prey else PREDATOR_INITIAL_ENERGY_VALUE
6060
self.alive = True
6161

6262
def reset_reproduction_time(self) -> None:

0 commit comments

Comments
 (0)