If you do then my game is the perfect game for you!
play my game here https://replit.com/@Evanisha/Chat-With-A-Robot?v=1
If you do then my game is the perfect game for you!
play my game here https://replit.com/@Evanisha/Chat-With-A-Robot?v=1
Nice! Suggestions:
scrollTxt()
. It becomes annoying.os.system("clear")
or replit.clear()
print("")
, even print()
is good enough without any parameters. but you should use a while loop:i = 0
while i < 30: # If I want 30 new lines
print()
That’s using bash which I consider bad practice
either that or print('\033c', end='')
newlines = 30
print('\n' * newlines, end='')
OR
def write_lines(lines: int) -> None:
print('\n' * lines, end='')
write_lines(30)
Everyone considers that bad practice. However, I use this mostly because I’ve had bad experience with using replit.clear()
. One time, I tried using it, and replit.clear()
only cleared half the screen (for some reason). I haven’t used it since then. Could be because there was too much on the screen at that time.