-
Notifications
You must be signed in to change notification settings - Fork 1
/
game.py
465 lines (321 loc) · 9.88 KB
/
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
# Good Luck reading all this
# Wait, Do not scroll down!
# There's a secret!
import os
from colorama import Fore as color
from time import sleep as wait
from random import randint
from discord.ext import tasks
# Variables Setting
cpc = 0
clicks = 0
emoji = 0
cps = 0
emo = '😶'
new = '🙂'
pri = 1200
inc = 10
gr = 0
nlis = ['😌','☺️','😊','😀','😄','😁','😆','🤩','🥳']
tr = False
legendchance = None
gamefin = False
per = 100
trap = 25
lg = 0
tg = 0
p = 0
trapd = False
# Functions
def warn():
try:
raise SyntaxError("Not Enough Money.")
except:
print(color.RED + "Not Enough Money.")
def invalid():
print(color.RED + "Invalid Input" + color.RESET + '.')
wait(2)
print("1+1= ", 1+1) #Hi
# Game Start
print("Hello!")
print("Please Read the README.md before playing.")
while True:
legendchance = 0
trapchance = 0
c = cpc + gr + 1
print(color.GREEN + "~~~~~~ Emoji Clicker ~~~~~~")
print(color.RESET + "Please choose your action:")
print('[ENTER] Click Once')
# Choose Action Code
print('1: Shop 2: Settings')
print('3: Stats 4: Leaderboard')
print('5: Pause 6: Exit')
print(f"You now have {emoji} Emojis")
if gamefin == True:
print(color.CYAN + "You finished the game!")
print("Congratulations!")
print("Keep playing!" + color.RESET)
q = input('Action: ')
if q == '':
trapchance = randint(1,trap)
print(f"You clicked once {emo}")
if tr == True:
legendchance = randint(1,per)
if trapchance == 25:
if trapd == False:
tenper = emoji / 10
emoji -= tenper
print("Oh no! This is a trap!")
wait(3)
elif legendchance == per:
emoji += c * 69
print("Legend……")
wait(2)
else:
emoji += c
clicks += 1
elif q == '1':
os.system('clear')
print("Choose your upgrade:")
print(f"1: Upgrade your emoji to {new} and increase Emoji Per Click by {inc}. --- ${pri}")
print("2: Emoji Mouse …… Increase Emoji Per Click by 1 --- $96")
print("3: Emoji Keyboard …… Increase Emoji Per Click by 10 --- $899")
print("4: Unknown Gift …… Gets 0~3000 emojis --- $1198")
print("5: Emoji Document …… Increase Emoji Per Click by 50 --- $4199")
print("6: Treasure Detector …… Will have 1% Chance of Finding a legend emoji --- $5000")
print("7: Emoji Fiction …… Increase Emoji Per Click by 400 --- $29999")
print("8: Red Packet …… Gets 1000~50000 Emoji --- $32121")
print("9: Emoji Bookshelf …… Increase Emoji Per Click by 6900 --- $339999")
print("10: Decrease Trap Chance --- $694200")
print("11: Increase Legendary Emoji Chance --- $999999")
print("12: Emoji Party …… Increase Emoji Per Click by 100000 --- $3499999")
print("13: Emoji House …… Increase Emoji Per Click by 2500000 --- $77777777")
print("14: Emoji Town …… Increase Emoji Per Click by 20000000 --- $499999999")
print("15: Paradise or Hell? …… Gets 0~10000000000 Emojis --- $300000000")
print("16: ??? …… 00010101010100101010101001 --- $10110010001")
print("17: Dont buy! …… This is dangerous.I’m warning you. --- $999999999999")
print("18: Go Back")
x = input("Want to buy: ")
p = 0
ac = 0
add = 0
w = 0
det = 0
inl = 0
up = False
l = 0
note = False
add = True
s = None
ss = None
trapdd = False
if x == '1':
ss = f" Congrats you upgraded!"
p = pri
up = True
elif x == '2':
p = 96
ac = 1
s = "Emoji Mouse"
elif x == '3':
p = 899
ac = 10
s = "Emoji Keyboard"
elif x == '4':
p = 1198
add = randint(0,3000)
ss = f"You got {add} emojis!"
elif x == '5':
p = 4199
ac = 50
s = "Emoji Document"
elif x == '6':
p = 5000
l = True
ss = "Congrats You unlocked Legend Emojis!"
elif x == '7':
p = 29999
ac = 400
s = "Emoji Fiction"
elif x == '8':
p = 32121
add = randint(1000,50000)
ss = f"You got {add} emojis!"
elif x == '9':
p = 339999
ac = 6900
s = "Emoji Bookshelf"
elif x == '10':
p = 694200
det = 1
ss = "Congrats You will have less chance of finding a trap!"
elif x == '11':
p = 999999
inl = 1
ss = "Congrats You will have more chance of finding a legendary emoji!"
elif x == '12':
p = 3499999
ac = 100000
s = "Emoji Party"
elif x == '13':
p = 77777777
ac = 2500000
s = "Emoji House"
elif x == '14':
p = 499999999
ac = 20000000
s = "Emoji Town"
elif x == '15':
p = 300000000
add = randint(0,10000000000)
ss = f"You got {add} Emojis!"
elif x == '16':
p = 10110010001
trapdd = True
ss = "What?! You delelted Traps system! The annoying traps will not appear again, Congrats!"
elif x == '17':
p = 999999999999
w = True
ss = "I told you not to buy……"
elif x == '18':
pass
else:
invalid()
if p > 0:
if emoji > p:
if s == None:
print(ss)
wait(3)
elif ss == None:
pass
else:
print(f"Congrats you bought a/an {s}!")
wait(3)
emoji -= p
if ac > 0:
cpc += ac
emoji += add
if trapdd == True:
trapd = True
if det > 0:
trap += det
if inl > 0:
per -= inl
if l == True:
tr = True
if w == True:
gamefin = True
if up == True:
if gr != 10:
gr += 1
emo = new
new = nlis[gr]
pri = pri*3
else:
note = True
if note == True:
warn()
wait(3)
else:
pass
elif q == '2':
print("Will publish in v1.3!")
elif q == '3':
os.system('clear')
print("~~~~~~~Your Stats~~~~~~~")
print(f"Emojis: {emoji} Emojis Per Click: {c}")
print(f"Chance of finding a Legendary Emoji: 1/{per}")
print(f"Chance of finding a trap: 1/{trap}")
print(f"Game Finished: {gamefin} Total Clicks: {clicks}")
print(f"Current Emoji: {emo} Emoji Grade: {gr}")
wait(5)
elif q == '4':
print("Will publish in v2.0!")
elif q == '5':
os.system('clear')
print("Game Paused")
print("Type anything to continue")
reply = input("Reply: ")
elif q == '6':
print(color.RED + "You will lose all your progress.")
print("Are you sure want to exit?")
print("Type 999 to exit, anything else to cancel.")
leave = input("Answer: ")
if leave == '999':
raise NameError("Game Over.")
else:
print(color.RESET + "Action Cancelled.")
wait(3)
else:
invalid()
os.system('clear')
# Leave
# Stop now
# You will regret this
# Back to the top
# Stop buddy
"""
We're no strangers to love
You know the rules and so do I
A full commitment's what I'm thinking of
You wouldn't get this from any other guy
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
We've known each other for so long
Your heart's been aching, but
You're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
And if you ask me how I'm feeling
Don't tell me you're too blind to see
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
(Oooooooh, Give you up
Oooooooh, Give you UP)
Never gonna give, never gonna give (Always gonna take, always gonna take)
(Give you up)
Never gonna give, never gonna give (Always gonna take, always gonna take)
(Give you up)
We've known each other for so long
Your heart's been aching, but
You're too shy to say it
Inside we both know what's been going on
We know the game and we're gonna play it
I just wanna tell you how I'm feeling
Gotta make you understand
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
Never gonna give you up
Never gonna let you down
Never gonna run around and desert you
Never gonna make you cry
Never gonna say goodbye
Never gonna tell a lie and hurt you
"""
# Get rickrolled for being down here