From a9fb2ed3fa167e9c633c0f6dd45aabf838605f17 Mon Sep 17 00:00:00 2001 From: Caeden Perelli-Harris Date: Sun, 30 Jul 2023 19:31:40 +0100 Subject: [PATCH] Update cellular_automata/wa_tor.py Co-authored-by: Tianyi Zheng --- cellular_automata/wa_tor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cellular_automata/wa_tor.py b/cellular_automata/wa_tor.py index 33f02c1a8..cac151b6d 100644 --- a/cellular_automata/wa_tor.py +++ b/cellular_automata/wa_tor.py @@ -544,8 +544,8 @@ def display_visually(wt: WaTor, iter_number: int, *, colour: bool = True) -> Non __import__("os").system("") print("\x1b[0;0H\x1b[2J\x1b[?25l") - reprint = "\x1b[0;0H" if colour is True else "" - ansii_colour_end = "\x1b[0m " if colour is True else " " + reprint = "\x1b[0;0H" if colour else "" + ansii_colour_end = "\x1b[0m " if colour else " " planet = wt.planet output = ""