DEV Community

Discussion on: Text Battle Royale

Collapse
 
dillonb07 profile image
Dillon Barnes

Cool. One thing I would like to point out is that os.system('clear') doesn't work on all devices. To solve this, you can import the clear function from my package like so:

from dill_tils.text import clear

clear() # This clears the screen!
Enter fullscreen mode Exit fullscreen mode

Or, just steal the function from my GitHub repo if you don't want to install packages.
github.com/DillonB07/Dill_tils/blo...

This just changes the command to clear or cls depending on the OS that's being used to run the program.

Collapse
 
vulcanwm profile image
Medea

Oh yeah thanks for that! I’ll implement it later!