Update cellular_automata/wa_tor.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
Caeden Perelli-Harris 2023-07-30 19:31:40 +01:00 committed by GitHub
parent 8554b71947
commit a9fb2ed3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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