Skip to content

Commit 6f61366

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

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
@@ -484,7 +484,7 @@ def run(self, *, iteration_count: int) -> None:
484484

485485
for __ in range(len(all_entities)):
486486
entity = all_entities.pop(randint(0, len(all_entities) - 1))
487-
if entity.alive is False:
487+
if not entity.alive:
488488
continue
489489

490490
directions: list[Literal["N", "E", "S", "W"]] = ["N", "E", "S", "W"]

0 commit comments

Comments
 (0)