Share your repls and programming experiences

← Back to all posts
textgame BETA
MrIdgit (0)

beta version of my IF game textgame

Comments
hotnewtop
SilvermoonCat (429)

Maybe add a clear system and a typing effect

import sys, time, os
def typing(text):
     for char in text:
          sys.stdout.write(char)
          sys.stdout.flush()
          time.sleep(0.045)
     print("")
# to type:
typing("message...")

def clear():
     os.system("clear")
# to clear screen:
clear()