Share your repls and programming experiences

← Back to all posts
Crude stickman, walking animation
TobyS (57)

2 years of alevel computer science led to this lol

Commentshotnewtop
Invizibo (1)

There's No module called replit as the error says.
Instead of import clear why not clear yourself using os.sys

from time import sleep
clear = lambda:__import__('os').system('clear')
frames=[
'''
         [-_]
          |\ 
          ||\ 
          |\ 
          | \ 
''',
''' 
           [-_]
            |\ 
            ||\ 
            |\ 
            | | 
''',

'''   
             [-_]
              |\ 
              ||
              ||
              || 
''',
'''    
               [-_]
                /\ 
               /|| 
                \| 
                || 
''',
'''     
                 [-_]
                  /\ 
                 /|| 
                  \| 
                   \ 
''',
'''   
                   [-_]
                    |\ 
                    ||
                    ||
                    || 
''',
'''
                     [-_]
                      |\ 
                      ||\ 
                      |\ 
                      | \ 
''',
'''
                       [-_]
                        |\ 
                        ||\ 
                        |\ 
                        | | 
''',
'''
                         [-_]
                          |\ 
                          ||
                          ||
                          || 
''',
'''    
                           [-_]
                            /\ 
                           /|| 
                            \| 
                            || 
''',
'''     
                             [-_]
                              /\ 
                             /|| 
                              \| 
                               \ 
''',
'''   
                               [-_]
                                |\ 
                                ||
                                ||
                                || 
''',
'''
                                 [-_]
                                  /\ 
                                  ||\ 
                                  |\ 
                                  | \ 
''',
'''
                                   [-_]
                                    |\ 
                                    ||\ 
                                    |\ 
                                    | | 
''',
]



def play(frames):
  for item in frames:
    print(item)
    sleep(.15)
    clear()
play(frames)
TobyS (57)

@Invizibo Thanks, idk why that stopped working

demerpydude (1)

theres also a way to use import sys that doesnt stay limited to repl.it

TobyS (57)

@demerpydude Yeah "import clear from replit" no longer works apparently

AtriDey (28)

This is an advanced program nobody can make. What are you doing, you can be making the world's best AI with this skill!

Just waiting for someone to woosh...

TobyS (57)

@AtriDey Why would anyone whoosh? Obviously I should be working for NASA by now.

Thecrowbar1234 (58)

TobyS.programQuality("amazing")

Warhawk947 (238)

just a tip:

while True:
    play(frames)

great project tho

TaylorLiang (615)

updoot for less screen flicker. This is a project without it. Im happy

AHulot (21)

Umm, it doesn't seem to work at the moment...

Tomii (3)

this is bad get a real job

TobyS (57)

@Tomii Get one yourself lol

Thecrowbar1234 (58)

@Tomii Why you hate man? This project is amazing!

Tomii (3)

this doesnt even work its bafd

TobyS (57)

@Tomii It does now but its still "bafd"