Update cellular_automata/wa_tor.py

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Caeden Perelli-Harris 2023-07-28 21:17:11 +03:00 committed by GitHub
parent 0765948c9f
commit 9289b51ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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