-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoffee Game.py
389 lines (353 loc) · 16.4 KB
/
Coffee Game.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
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
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# All art and code by CatX
# UPDATE 2 OUT NOW!!!
# Features:
# New endings and ending drawings, improved code, and, I finally started work on the making part of the game (where you make your own coffee)
# This godforsaken code drives me insane when trying to fix it, so sadly, update 2 (OUT NOW PLAY IT PLEASE IUDHUAHSDIAUSDDSDSGFG) does not include the maker gamemode:
# (The code:)
"""
# Code here has to be fixed:
answer = input("How many coffee beans do you want? ")
coffee_beans -= int(input())
if coffee_beans > 7:
Lots_of_coffee_beans = True
answer = input("How many drops of milk do you want in your coffee? ")
milk_droplets -= int(input())
if milk_droplets > 27:
Lots_of_milk_droplets = True
answer = input("How many sugar cubes do you want in your coffee? ")
sugar_cubes -= int(input())
if sugar_cubes > 3:
Lots_of_sugar_cubes = True
print("Making...")
sleep(3)
print("Coffee done! Here are the results:")
if Lots_of_coffee_beans == True:
sleep(2)
print("Too many coffee beans!")
if Lots_of_milk_droplets == True:
print("A bit too much milk!")
if Lots_of_sugar_cubes == True:
sleep(2)
print("Too many sugar cubes!")
elif Lots_of_coffee_beans == False:
sleep(2)
print("A good amount of coffee beans!")
elif Lots_of_milk_droplets == False:
sleep(2)
print("Just the right amount of milk droplets!")
elif Lots_of_sugar_cubes == False:
sleep(2)
print("You resisted the temptation for more sugar- good job!")
print("Here are the resources you have left:")
sleep(1)
print("You have ", coffee_beans, " coffee beans left over,")
sleep(1)
print(milk_droplets, " milk droplets,")
sleep(1)
print("And finally, you have ", sugar_cubes, " sugar cubes left over." )
sleep(1)
print("Enjoy!")
# Here is where the code that needs fixing ends.
"""
# Just a simple game about coffee... or is it?
import random
from time import sleep
drank_key = False
print("""
A totally normal
______ _____ _______ _______ ______ ______
~~ | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______
~~~~~ | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______ game.
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
#################
|###################|
|###################|----
|___#############___| | | Coffees... haha, get it? No...? Oh...
| |____________| | | | :(
| | | |
| COFFEE COFFEE COF-| | |
| FEE COFFEE COFFEE |----
| COFFEE COFFEE |
|___________________|
""")
sleep(4)
print("Loading...")
sleep(7)
play = input("Play? Don't play? (p/dp) ")
if play == "p":
print("In front of you are 6 delicious coffees. You stare at them happily.")
print("At this coffee shop, you may create your own coffee, or spin a wheel to get a random coffee.")
sleep(4)
answer = input("What would you like to do? (spin/make) (make currently W.I.P) ")
if answer.lower() == "spin":
random_coffee = random.randint(1, 6)
if random_coffee == 1:
print("You got... coffee #1!")
sleep(3)
print("You receive a purple liquid that jiggles around in the mug.")
print("You are skeptical if this is actually coffee or not but are encouraged by the owner to drink it.")
sleep(4)
print("Slowly, you put the mug to your mouth, before pouring the gelatinous liquid down your throat.")
print("As it gently slides down your throat, you feel a burning in your stomach.")
sleep(3)
print("Just as you feel like you are going to explode, you let out a massive...")
print("BUUUUURRRRPPPPPPPP!!!!!!!!!")
sleep(3)
print("Dazed, you give the shop owner a crazed look. It tasted like blueberries, though, so, that's a bonus.")
sleep(1)
print("You got the...")
sleep(1)
print("""
Weird, burp inducing, blueberry tasting,
______ _____ _______ _______ ______ ______
~~ | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______
~~~~~ | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______... uh... thing... ending.
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
#################
|###################|
|###################|----
|___#############___| | |
| |____________| | | |
| | | |
| WORLD'S BEST | | |
| COFFEE |----
| B U R P E R |
|___________________|
Tasty!
""")
quit()
elif random_coffee == 2:
print("You got coffee #2!")
sleep(2)
print("The shop owner slides a nice coffee down the table. It looks beautiful, and shines in the sunlight. ")
print("Enjoy the nice, warm, energising liquid!")
sleep(1)
print("You got the...")
sleep(1)
print("""
Normal but slightly better than usual tasting
______ _____ _______ _______ ______ ______
~~ | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______
~~~~~ | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______ ending.
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
#################
|###################|
|###################|----
|___#############___| | | SLURP SLURP GULP GULP SIP!
| |____________| | | |
| | | |
| i am dependant on | | |
| COFFEE |----
| to survive |
|___________________|
""")
quit()
elif random_coffee == 3:
print("You got coffee #3!")
sleep(2)
print("In front of you is a green, bubbling liquid. Something inside the drink seems to be reacting with the liquid.")
print("Hesitantly, you take a massive gulp.")
sleep(2)
print("You start choking on something, and clutch your burning throat. Eventually, you cough up a golden key.")
sleep(3)
print("It's covered in drool. This key must have been what the drink was reacting with...?")
sleep(2)
drank_key = True
elif random_coffee == 4:
print("You got coffee #4!")
sleep(2)
print("You get a nice coffee. It smells of strawberries.")
print("The drink tastes beautiful, and you can't stop buying more and more amd more and more and more...")
sleep(4)
while 3 > 1:
print("and more and more and more... (you got the addiction ending, btw (and btw means by the way, btw)) ")
elif random_coffee == 5:
print("The owner shrugs and states that coffee #5 is out of stock, for... reasons...")
elif random_coffee == 6:
print("You got coffee #6!")
sleep(2)
print("A crimson red liquid wobbles around your mug. Hesitantly, you drink it.")
sleep(1)
print("You immediately become energised, and exit the shop, do a 50 mile run and break your legs and die.")
sleep(2)
print("The end!")
sleep(1)
print("You got the...")
sleep(1)
print("""
Fitness
______ _____ _______ _______ ______ ______
~~ | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______
~~~~~ | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______ of DEATH ending.
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
################# I'm sure it tasted nice though.
|###################|
|###################|----
|___#############___| | |
| |____________| | | |
| | | |
| FITNESS POWER | | |
| BUT IN... |----
| C O F F E E ! |
|___________________|
""")
if answer.lower() == "make":
coffee_beans = 20
milk_droplets = 100
sugar_cubes = 20
Lots_of_coffee_beans = False
Lots_of_milk_droplets = False
Lots_of_sugar_cubes = False
print("Loading...")
sleep(3)
print("Welcome to make a coffee!")
sleep(1)
print("""
Make a...
______ _____ _______ _______ ______ ______
~~ | | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______ |
~~~~~ | | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______ #
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
#################
|###################|
|###################|----
|___#############___| | |
| |____________| | | |
| | | |
| I LOVE COFFEE | | |
| AND UHH... STUFF |----
| LIKE THAT |
|___________________| Currently re-stocking coffee beans...
""")
sleep(3)
print("""Welcome to make a coffee! You currently have:"
20 Coffee Beans (5 beans for one coffee)
1 Bottle of Milk (1 quarter milk per normal coffee) (you have 100 drops of milk and a quarter takes away 25 drops)
20 Sugar Cubes (2 per cuppa')
""")
print("Get ready to make your coffee...")
sleep(4)
print("Now!")
sleep(1)
# Code here has to be fixed:
answer = input("How many coffee beans do you want? ")
coffee_beans -= int(input())
if coffee_beans > 7:
Lots_of_coffee_beans = True
answer = input("How many drops of milk do you want in your coffee? ")
milk_droplets -= int(input())
if milk_droplets > 27:
Lots_of_milk_droplets = True
answer = input("How many sugar cubes do you want in your coffee? ")
sugar_cubes -= int(input())
if sugar_cubes > 3:
Lots_of_sugar_cubes = True
print("Making...")
sleep(3)
print("Coffee done! Here are the results:")
if Lots_of_coffee_beans == True:
sleep(2)
print("Too many coffee beans!")
if Lots_of_milk_droplets == True:
print("A bit too much milk!")
if Lots_of_sugar_cubes == True:
sleep(2)
print("Too many sugar cubes!")
elif Lots_of_coffee_beans == False:
sleep(2)
print("A good amount of coffee beans!")
elif Lots_of_milk_droplets == False:
sleep(2)
print("Just the right amount of milk droplets!")
elif Lots_of_sugar_cubes == False:
sleep(2)
print("You resisted the temptation for more sugar- good job!")
print("Here are the resources you have left:")
sleep(1)
print("You have ", coffee_beans, " coffee beans left over,")
sleep(1)
print(milk_droplets, " milk droplets,")
sleep(1)
print("And finally, you have ", sugar_cubes, " sugar cubes left over." )
sleep(1)
print("Enjoy!")
# Here is where the code that needs fixing ends.
if drank_key == True:
print("The owner of the shop eyes you suspiciously.")
print("You hold the sodden key in your hand.")
sleep(2)
print("You look around and see a door with a lock. You walk over to it and, just for fun, try to see if the key works.")
sleep(4)
print("To your surprise, it works. Just as you are about to step into the pitch black room, you hear a scream from inside,")
print("and turn around. The owner is holding a bat. She stares a you furiously. WHACK!")
sleep(5)
print("You wake up on a conveyer belt. You are moving towards some grinding machine.")
print("Suddenly you realise you are tied up and can't move.")
print("You look around. You see the owner staring at you.")
sleep(4)
print("'You will make an excellent coffee...' She says, pulling some sort of lever.")
sleep(5)
print("'HELP ME!!!!' You scream.")
print("Her cackles are the last thing you hear before you plummet into the grinder, never to be seen again...")
sleep(1)
print("You got the...")
sleep(2)
print("""
You are a
______ _____ _______ _______ ______ ______
~~ | | | | | | |
~~~~ | | | |_______ |_______ |______ |_______
~~~~~ | | | | | | |
~~~~~~ |______ |_____| | | |______ |_______ ending.
~~~~~~
~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~
#################
|###################|
|###################|----
|___#############___| | |
| |____________| | | |
| | | |
| haha you are a | | |
| coffee now haha |----
| sip sip gulp gulp | _______
|___________________| | |---
| | | |___
| | | |_
------- |
_|
_______
| |---
| | | |___
| | | |_
------- |
_|
""")
elif play == "dp":
quit()