-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathangel_wei.py
More file actions
323 lines (266 loc) · 10.8 KB
/
angel_wei.py
File metadata and controls
323 lines (266 loc) · 10.8 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
import time
name = input("What is your name? > ")
name = name.capitalize()
def letsgo(name):
time.sleep(1.5)
print(f"\"Hi {name}, welcome to New York City. What do you want to do today?\"")
time.sleep(1.5)
print("You see a sign for the D train to Stillwell Ave and a 7 train to 42nd St Times Square.")
time.sleep(1.5)
badchoice = True
while badchoice:
choice = input("\"Should we stay in Manhattan or explore Brooklyn today?\" > ")
choice = normalizer(choice)
#print(choice)
if choice in ["D TRAIN", "D", "STILLWELL", "BROOKLYN"]:
#print("Going to Brooklyn")
badchoice = False
time.sleep(1.5)
brook()
elif choice in ["TIMES SQUARE", "42ND", "MANHATTAN", "7", "7 TRAIN"]:
#print ("Staying in Manhattan")
badchoice = False
time.sleep(1.5)
manhattan()
else:
print("I didn't understand your choice. Can you type Brooklyn or Manhattan? \n")
def normalizer(inp_txt):
return inp_txt.upper()
def brook():
badchoice = True
while badchoice:
choice = input("\"Alright, here we are in the 'in'-famous Coney Island.\"\nYou look around and see Nathan's, the amusement park, and the beach.\n\"Do you want to eat or play?\" > ")
choice = normalizer(choice)
if choice in ["PLAY"]:
badchoice = False
time.sleep(1.5)
play_bk()
#print("Lets PLAY")
elif choice in ["EAT"]:
badchoice = False
time.sleep(1.5)
eat_bk()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'play' or 'eat?'\"\n")
def play_bk():
badchoice = True
while badchoice:
choice = input("\"Great. I wanted to play too! I'm not sure where to begin! Do you want to go to the beach?\" > ")
choice = normalizer(choice)
if choice in ["YEAH", "YES", "YEA", 'SURE', 'YEP']:
badchoice = False
time.sleep(1.5)
beach()
#print("Lets PLAY")
elif choice in ["NO", "NAH", 'NOPE', 'NO WAY']:
badchoice = False
time.sleep(1.5)
print('"Alright, I\'m getting kinda hungry anyway, let\'s eat instead."')
time.sleep(1.5)
eat_bk()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'yes' or 'no?'\"\n")
def eat_bk():
badchoice = True
while badchoice:
choice = input("Do you want to eat hot dog or pizza? > ")
choice = normalizer(choice)
if choice in ["HOT", "DOG", "HOTDOG"]:
badchoice = False
time.sleep(1.5)
hotdog()
#print("Lets PLAY")
elif choice in ["PIZZA"]:
badchoice = False
time.sleep(1.5)
pizza()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'hot dog' or 'pizza?'\"\n")
def beach():
print("\"Sure, let's take a walk on the boardwalk to find a nice spot on the beach.\"")
time.sleep(1.5)
choice = input("The water looks freezing. Are you sure you want to swim?")
choice = normalizer(choice)
if choice in ["YES", "YEAH", "YEA"]:
choice = False
time.sleep(1.5)
swim_yea()
#print("Lets PLAY")
elif choice in ["NO", "NAH" "NO WAY"]:
badchoice = False
time.sleep(1.5)
swim_no()
#print("LETS EAT")
else:
("\"I didn't understand your choice. Did you say 'yes' or 'no?'\"\n")
def swim_yea():
badchoice = True
while badchoice:
choice = input("\"Awesome the water is not that cold! I thought it was really fun. Show we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
time.sleep(1.5)
print(f"Great, let's jump on the {choice}!\"")
gohome(name,choice)
else:
print("\"Sorry I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def swim_no():
badchoice = True
while badchoice:
choice = input("\"Thank goodness you said no to swimming. It looks sooooooo cold.\nWell, we got in some nice sun time at the shore. Shall we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
print(f"On the {choice}")
time.sleep(1.5)
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def hotdog():
badchoice = True
while badchoice:
choice = input("\"Those natural casing hotdogs at Nathans were the real deal! Great suggestion! But, we ate way too much. Should we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
time.sleep(1.5)
print(f"On the {choice}")
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def pizza():
badchoice = True
while badchoice:
choice = input("\"Whoa, Grimaldi's pizza was awesome! The cheese was fresh mozz! The crust had a delicate crisp to it. We gotta come back some day!\nShould we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
time.sleep(1.5)
print(f"On the {choice}")
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def gohome(name, train):
print(f"\"Perfect, {name}. This {train} train will get us back in no time.\"")
print("\"What an end to another Tuesday!\"")
def manhattan():
badchoice = True
while badchoice:
choice = input("\"YES. Manhattan island. Oh what? You didn't know it's an island? It sure is.\nMost people mistake Manhattan for NYC but, in reality, it's just a small part of NYC.\nSo, how now? Do you want to eat or play?\" > ")
choice = normalizer(choice)
if choice in ["PLAY"]:
badchoice = False
time.sleep(1.5)
play_man()
#print("Lets PLAY")
elif choice in ["EAT"]:
badchoice = False
time.sleep(1.5)
eat_man()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'eat' or 'play?'\"\n")
def play_man():
badchoice = True
while badchoice:
choice = input("\"Great, let's do it up, GIRL! Hows about we catch a show?\" > ")
choice = normalizer(choice)
if choice in ["YEAH", "YES", "YEA"]:
badchoice = False
time.sleep(1.5)
show_yea()
#print("Lets PLAY")
elif choice in ["NO", "NAH"]:
badchoice = False
time.sleep(1.5)
show_no()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'yes' or 'no?'\"\n")
def eat_man():
badchoice = True
while badchoice:
choice = input("\"That's a good idea, I haven't eaten in a minute. I'm famished. Do you want to grab some pasta or sandwiches?\" > ")
choice = normalizer(choice)
if choice in ["PASTA"]:
badchoice = False
time.sleep(1.5)
pasta()
#print("Lets PLAY")
elif choice in ["SANDWICHES", "SANDWICH"]:
badchoice = False
time.sleep(1.5)
sandwiches()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'pasta' or 'sandwiches?'\"\n")
def show():
badchoice = True
while badchoice:
choice = input("\"Real bold choices you're making today. Awesome. Let's watch the Lion King?\" > ")
choice = normalizer(choice)
if choice in ["YES", "YEAH", "YEA"]:
choice = False
time.sleep(1.5)
show_yea()
#print("Lets PLAY")
elif choice in ["NO", "NAH" "NO WAY"]:
badchoice = False
time.sleep(1.5)
show_no()
#print("LETS EAT")
else:
print("\"I didn't understand your choice. Did you say 'yes' or 'no?'\"\n")
def show_yea():
badchoice = True
while badchoice:
choice = input("\"Awesome, that show was great. I almost thought that dude was gonna get eaten by the lion! But he didn't and then he became a king! What a great day! Should we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
print(f"On the {choice}")
time.sleep(1.5)
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def show_no():
badchoice = True
while badchoice:
choice = input("\"Thank goodness. I do not have enough money anyway. This freakin town is mad $$$$! Should we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
print(f"On the {choice}")
time.sleep(1.5)
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def pasta():
badchoice = True
while badchoice:
choice = input("\"Holy cow, that pasta was amazing! I didn't care so much for the snails though. You scarfed everything down like it was your last day!\nI think we ate way too much.\nShould we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
print(f"On the {choice}")
time.sleep(1.5)
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
def sandwiches():
badchoice = True
while badchoice:
choice = input("\"That pastrami was soooooooo good! I'm glad I ordered some to go too. I still can't believe you ate the whole sandwich by yourself! That was as big as your face! Should we take the N train or D train to go home?\" > ")
choice = normalizer(choice)
if choice in ["D", "N"]:
badchoice = False
print(f"On the {train}")
time.sleep(1.5)
gohome(name, choice)
else:
print("\"Sorry, I'm too tired. Say 'D' or 'N' for us to leave.\" \n")
letsgo(name)