forked from yungtry/papiezmowi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpapiezmowi.py
executable file
·59 lines (51 loc) · 3.29 KB
/
papiezmowi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import random
import os
YELLOW = "\033[1;33;48m"
END = "\033[1;37;0m"
def lettersCount(words):
return len(words)
def drukujPapsona(co, lenght):
papaj_station = os.get_terminal_size().columns
dymek = papaj_station if lenght + 2 > papaj_station else lenght + 2
# spaghetti code aka kremowka code
print("██" * dymek)
print("█ " + co)
print("██" * dymek)
print(YELLOW + "░░███░░░░░░░░░░░░░░░░" + END)
print(YELLOW + "░░░███░░░░░░░▄▄▀▀▀▀▀▀▄▄" + END)
print(YELLOW + "░░░░███░░░▄▄▀▄▄▄█████▄▄▀▄" + END)
print(YELLOW + "░░░░░██▄█▀▒▀▀▀█████████▄█▄" + END)
print(YELLOW + "░░░░░█▄██▒▒▒▒▒▒▒▒▀▒▀▒▀▄▒▀▒▀▄" + END)
print(YELLOW + "░░░░▄██▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▄" + END)
print(YELLOW + "░░░░██▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▌" + END)
print(YELLOW + "░░░▐██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐█" + END)
print(YELLOW + "░▄▄███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█" + END)
print(YELLOW + "▐▒▄▀██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐▌" + END)
print(YELLOW + "▌▒▒▌▒▀▒▒▒▒▒▒▄▀▀▄▄▒▒▒▒▒▒▒▒▒▒▒▒█▌" + END)
print(YELLOW + "▐▒▀▒▌▒▒▒▒▒▒▒▄▄▄▄▒▒▒▒▒▒▒▀▀▀▀▄▒▐" + END)
print(YELLOW + "░█▒▒▌▒▒▒▒▒▒▒▒▀▀▒▀▒▒▐▒▄▀██▀▒▒▒▌" + END)
print(YELLOW + "░░█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐▒▒▒▒▒▒▒▒█" + END)
print(YELLOW + "░░░▀▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌▒▒▒▒▒▒▄▀" + END)
print(YELLOW + "░░░▐▒▒▒▒▒▒▒▒▒▄▀▐▒▒▒▒▒▐▒▒▒▒▄▀" + END)
print(YELLOW + "░░▄▌▒▒▒▒▒▒▒▄▀▒▒▒▀▄▄▒▒▒▌▒▒▒▐▀▀▀▄▄▄" + END)
print(YELLOW + "▄▀░▀▄▒▒▒▒▒▒▒▒▀▀▄▄▄▒▄▄▀▌▒▒▒▌░░░░░░" + END)
print(YELLOW + "▐▌░░░▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▀░░░░░░░" + END)
print(YELLOW + "░█░░░░░▀▄▄▒▒▒▒▒▒▒▒▒▒▒▒▄▀░█░░░░░░░" + END)
print(YELLOW + "░░█░░░░░░░▀▄▄▄▒▒▒▒▒▒▄▀░░░░█░░░░░░" + END)
args = " ".join(sys.argv[1:])
if lettersCount(args) == 0:
slownikPapsona = [
"coo",
"jeszcze jak",
"z warkoczykami albo bez warkoczyków",
"ja nie wiem bo mi nie dali nigdy",
"jak mi dadzą to zjem",
"a po maturze chodziliśmy na kremówki",
]
papajmowi = random.choice(slownikPapsona)
drukujPapsona(papajmowi, lettersCount(papajmowi))
else:
drukujPapsona(args, lettersCount(args))