Update cellular_automata/wa_tor.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
Caeden Perelli-Harris 2023-07-30 19:40:24 +01:00 committed by GitHub
parent 7dc67884d1
commit 8670299598
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,8 +334,7 @@ class WaTor:
Entity(prey=False, coords=(0, 1), remaining_reproduction_time=20, Entity(prey=False, coords=(0, 1), remaining_reproduction_time=20,
energy_value=15)]] energy_value=15)]]
""" """
coords = entity.coords row, col = coords = entity.coords
row, col = coords
for direction in direction_orders: for direction in direction_orders:
# If the direction is North and the northern square # If the direction is North and the northern square