We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e659bd1 commit d277dbaCopy full SHA for d277dba
cellular_automata/wa_tor.py
@@ -54,7 +54,7 @@ def __init__(self, prey: bool, coords: tuple[int, int]) -> None:
54
self.coords = coords
55
56
self.remaining_reproduction_time = (
57
- PREY_REPRODUCTION_TIME if prey is True else PREDATOR_REPRODUCTION_TIME
+ PREY_REPRODUCTION_TIME if prey else PREDATOR_REPRODUCTION_TIME
58
)
59
self.energy_value = None if prey is True else PREDATOR_INITIAL_ENERGY_VALUE
60
self.alive = True
0 commit comments