mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
7dc67884d1
commit
8670299598
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user