Share your repls and programming experiences

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

2 years of alevel computer science led to this lol

Commentshotnewtop
AtriDey (33)

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 (60)

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

52eagle (22)

@TobyS I heard that the martians are looking for recruits to program their new reality changing device.

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 (60)

@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 (60)

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

Thecrowbar1234 (109)

TobyS.programQuality("amazing")

Warhawk947 (338)

just a tip:

while True:
    play(frames)

great project tho

TaylorLiang (773)

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

AHulot (43)

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