From 8554b7194756cb13ccf6b01b0d66fc37a3162f62 Mon Sep 17 00:00:00 2001 From: Caeden Perelli-Harris Date: Sun, 30 Jul 2023 19:30:41 +0100 Subject: [PATCH] Update cellular_automata/wa_tor.py Co-authored-by: Tianyi Zheng --- 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 c32f7c02e..33f02c1a8 100644 --- a/cellular_automata/wa_tor.py +++ b/cellular_automata/wa_tor.py @@ -540,7 +540,7 @@ def display_visually(wt: WaTor, iter_number: int, *, colour: bool = True) -> Non Iteration: 0 | Prey count: 2 | Predator count: 3 | """ - if colour is True: + if colour: __import__("os").system("") print("\x1b[0;0H\x1b[2J\x1b[?25l")