Created
February 7, 2022 03:41
-
-
Save goish135/fd9047c8c735d49515751d9877e5fb24 to your computer and use it in GitHub Desktop.
Bob team: me & Jason
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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