From 9289b51ddf68971cffb759825c0d8a87bca6e2b5 Mon Sep 17 00:00:00 2001 From: Caeden Perelli-Harris Date: Fri, 28 Jul 2023 21:17:11 +0300 Subject: [PATCH] Update cellular_automata/wa_tor.py Co-authored-by: Christian Clauss --- cellular_automata/wa_tor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cellular_automata/wa_tor.py b/cellular_automata/wa_tor.py index 34eefc510..c11e4e4ba 100644 --- a/cellular_automata/wa_tor.py +++ b/cellular_automata/wa_tor.py @@ -121,7 +121,7 @@ class WaTor: self.time_passed = 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