ZDDduesseldorf / zdd-adventure-test

Student project to create an old-school text adventure.
MIT License
4 stars 4 forks source link

[ERROR] "os.system('cls')" does not work under MacOS and Linux #52

Open l4nz8 opened 2 years ago

l4nz8 commented 2 years ago

https://github.com/ZDDduesseldorf/zdd-adventure/blob/802b54bcecef4f1473531e2945ec6b6eb945679e/zdd_adventure/start_adventure.py#L36

os.system('cls') works only under Windows I have implemented a function in graphics.py which can clear the console cross-platform.

Please import the function clear_cmd() from graphics.py and use it instead of os.system('cls')!

florian-huber commented 2 years ago

--> this could become a good unit test :)