Skip to content

Commit faafb49

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: cellular_automata/wa_tor.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ def get_surrounding_prey(self, entity: Entity) -> list[Entity]:
241241
>>> wt.get_surrounding_prey(Entity(False, (1, 0)))
242242
[Entity(prey=True, coords=(0, 0), remaining_reproduction_time=5)]
243243
"""
244-
coords = entity.coords
245-
row, col = coords
244+
row, col = entity.coords
246245
surrounding_prey: list[Entity] = []
247246

248247
# Go through N, S, E, W with two booleans

0 commit comments

Comments
 (0)