mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
Update cellular_automata/wa_tor.py
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
0765948c9f
commit
9289b51ddf
@ -121,7 +121,7 @@ class WaTor:
|
|||||||
self.time_passed = None
|
self.time_passed = None
|
||||||
|
|
||||||
self.planet: list[list[Entity | None]] = [
|
self.planet: list[list[Entity | None]] = [
|
||||||
[None for _ in range(width)] for _ in range(height)
|
[None] * width for _ in range(height)
|
||||||
]
|
]
|
||||||
|
|
||||||
# Populate planet with predators and prey randomly
|
# Populate planet with predators and prey randomly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user