Skip to content

Commit a9fb2ed

Browse files
Update cellular_automata/wa_tor.py
Co-authored-by: Tianyi Zheng <[email protected]>
1 parent 8554b71 commit a9fb2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cellular_automata/wa_tor.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,8 @@ def display_visually(wt: WaTor, iter_number: int, *, colour: bool = True) -> Non
544544
__import__("os").system("")
545545
print("\x1b[0;0H\x1b[2J\x1b[?25l")
546546

547-
reprint = "\x1b[0;0H" if colour is True else ""
548-
ansii_colour_end = "\x1b[0m " if colour is True else " "
547+
reprint = "\x1b[0;0H" if colour else ""
548+
ansii_colour_end = "\x1b[0m " if colour else " "
549549

550550
planet = wt.planet
551551
output = ""

0 commit comments

Comments
 (0)