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:30:41 +01:00 committed by GitHub
parent 9f23c25f96
commit 8554b71947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -540,7 +540,7 @@ def display_visually(wt: WaTor, iter_number: int, *, colour: bool = True) -> Non
<BLANKLINE> <BLANKLINE>
Iteration: 0 | Prey count: 2 | Predator count: 3 | Iteration: 0 | Prey count: 2 | Predator count: 3 |
""" """
if colour is True: if colour:
__import__("os").system("") __import__("os").system("")
print("\x1b[0;0H\x1b[2J\x1b[?25l") print("\x1b[0;0H\x1b[2J\x1b[?25l")