Skip to content

Instantly share code, notes, and snippets.

@goish135
Created February 7, 2022 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goish135/fd9047c8c735d49515751d9877e5fb24 to your computer and use it in GitHub Desktop.
Save goish135/fd9047c8c735d49515751d9877e5fb24 to your computer and use it in GitHub Desktop.
Bob team: me & Jason
import sys
import os
import time
import platform
try:
name = sys.argv[1]
except:
print('Type python3 dancing_bob.py [Name]')
exit(1)
width = len(name) + 6
if platform.system()=="Windows":
os.system('cls')
else:
os.system('clear')
def pos0():
l1 = ' /~~~~~~~~\\ ' + ' ┌' + '─' * width + '┐'
l2 = ' | ((*)(*)) _y ' + '∠' + ' Happy '
l3 = 'y_|\\___==__/| ' + ' └' + '─' * width + '┘'
l4 = ' \\_|++++|_/ '
l5 = ' _/ \\_ '
pos = [l1, l2, l3, l4, l5]
return '\n'.join(pos)
def pos1():
l1 = ' /~~~~~~~~\\ ' + ' ┌' + '─' * width + '┐'
l2 = 'y_| ((*)(*)) ' + '∠' + ' Birthday '
l3 = ' |\\___==__/|_y ' + ' └' + '─' * width + '┘'
l4 = ' \\_|++++|_/ '
l5 = ' _/ \\_ '
pos = [l1, l2, l3, l4, l5]
return '\n'.join(pos)
def pos2():
l1 = ' /~~~~~~~~\\ ' + ' ┌' + '─' * width + '┐'
l2 = ' | ((*)(*)) _y ' +'∠'+ ' To '
l3 = 'y_|\\___==__/| ' + ' └' + '─' * width + '┘'
l4 = ' \\_|++++|_/ '
l5 = ' _/ \\_ '
pos = [l1, l2, l3, l4, l5]
return '\n'.join(pos)
def pos3():
l1 = ' /~~~~~~~~\\ ' + ' ┌' + '─' * width + '┐'
l2 = 'y_| ((*)(*)) ' + '∠' + ' '+ name
l3 = ' |\\___==__/|_y ' + ' └' + '─' * width + '┘'
l4 = ' \\_|++++|_/ '
l5 = ' _/ \\_ '
pos = [l1, l2, l3, l4, l5]
return '\n'.join(pos)
pos = [pos0(), pos1(),pos2(),pos3()]
df = 0.5
times = 3
for _ in range(times):
for p in pos:
print(p)
time.sleep(df)
if platform.system()=="Windows":
os. system('cls')
else:
os.system('clear')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment