-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmadLibs.py
109 lines (85 loc) · 3.84 KB
/
madLibs.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import colorama
from colorama import init ,Fore ,Style
def intro():
print(Fore.RED + r'''\
.-. . .-..----..-. .---. .----. .-. .-..----. .---. .----.
| |/ \| || {_ | | / ___}/ {} \| `.' || {_ {_ _}/ {} \
| .'. || {__ | `--.\ }\ /| |\ /| || {__ | | \ /
`-' `-'`----'`----' `---' `----' `-' ` `-'`----' `-' `----'
.-. .-. .--. .----. .-. .-..----. .----.
| `.' | / {} \ | {} \| | | || {} }{ {__
| |\ /| |/ /\ \| /| `--.| || {} }.-._} }
`-' ` `-'`-' `-'`----' `----'`-'`----' `----'
''')
print(Style.RESET_ALL)
#ASCII generator http://patorjk.com/
print('Welcome to MadLibs! MadLibs are short, silly stories based on your words. Please follow the rest of the prompt below to start playing! You will be able to read the full story immediately after you complete the prompt.')
#definition of madLibs: https://www.glowwordbooks.com/blog/category/kids-online-mad-libs/
#giraffe design credit to @vaultah
print(r'''
Have Fun!
Gerald, the giraffe will be watching you the entire time.
._ o o
\_`-)|_
,"" \
," ## | ಠ ಠ.
," ## ,-\__ `.
," / `--._;)
," ## /
," ## /
''')
print('''
\n a proper noun is the name of a person, place or thing (e.g., Alaska)
\n a noun is a person, place, or thing (e.g. tree)
\n an adjective is a describing word (e.g., beautiful, warm, cold)
\n an adverb is word that modifies another word (e.g., gently, quitly)
\n a verb is a word that describes an action (e.g., hear, run, fly)
\n a number is an arithmetical value (e.g., 1, 200, 38)
''')
#story 1: random story
random_story = '''
\n Once upon a time in a town called {},
\n there was a bird named {},
\n who felt {} and liked to {}
\n {}. Sometimes the bird would feel {} and eat {}.
\n But when the bird would try to eat a {},
\n the bird would see their friend, the {}
\n {}. Together, they would {} watch {}
\n {} for {} hours.
'''
def main():
proper_noun = []
proper_noun.append(input('Enter a proper noun: '))
proper_noun.append(input('Enter another proper noun: '))
noun = []
noun.append(input('Enter a plural noun: '))
noun.append(input('Enter a singular noun: '))
noun.append(input('Enter another noun: '))
noun.append(input('Enter a plural noun: '))
adjective = []
adjective.append(input('Enter an adjective: '))
adjective.append(input('Enter one more adjective: '))
adjective.append(input('Enter another adjective: '))
adjective.append(input('Enter one last adjective: '))
adverb = []
adverb.append(input('Enter an adverb: '))
adverb.append(input('Enter another adverb: '))
verb = input('Enter a verb: ')
number = input('Enter a number: ')
mad_lib = random_story.format(proper_noun[0],
proper_noun[1],
adjective[0],
adverb[0],
verb,
adjective[1],
noun[0],
noun[1],
adjective[2],
noun[2],
adverb[1],
adjective[3],
noun[3],
number)
print(mad_lib)
intro()
main()