-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypinggame.py
More file actions
135 lines (130 loc) · 3.18 KB
/
typinggame.py
File metadata and controls
135 lines (130 loc) · 3.18 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
from time import sleep
from os import system, name
grind = False
menupage = False
money = 90000000
multiple = 1000
listmult = [2, 4, 6, 9, 12, 50, 90, 200, 700, 1000]
listprc = [4000, 5000, 7000, 12000, 30000, 100000, 500000, 900000, 1200000, 5000000]
def finish():
print("Congratulation you finish the game!")
sleep(500)
def tutor():
print("Type anything to grind money!\nTo leave type 'exit'!")
sleep(2)
def shop():
global money, multiple
many = len(listmult)
for i in range(many):
print("[",i,"] Multiple",listmult[i],"x (",listprc[i],")")
buy = int(input("\nWhat you gonna buy sir?"))
if buy == 1:
if money >= listprc[1]:
multiple = listmult[1]
money = money - listprc[1]
else:
print("You don't have enough money!")
elif buy == 2:
if money >= listprc[2]:
multiple = listmult[2]
money = money - listprc[2]
else:
print("You don't have enough money!")
elif buy == 3:
if money >= listprc[3]:
multiple = listmult[3]
money = money - listprc[3]
else:
print(".")
elif buy == 4:
if money >= listprc[4]:
multiple = listmult[4]
money = money - listprc[4]
else:
print("You don't have enough money!")
elif buy == 5:
if money >= listprc[5]:
multiple = listmult[5]
money = money - listprc[5]
else:
print("You don't have enough money!")
elif buy == 6:
if money >= listprc[6]:
multiple = listmult[6]
money = money - listprc[6]
else:
print("You don't have enough money!")
elif buy == 7:
if money >= listprc[7]:
multiple = listmult[7]
money = money - listprc[7]
else:
print("You don't have enough money!")
elif buy == 8:
if money >= listprc[8]:
multiple = listmult[8]
money = money - listprc[8]
else:
print("You don't have enough money!")
elif buy == 9:
if money >= listprc[9]:
multiple = listmult[9]
money = money - listprc[9]
else:
print("You don't have enough money!")
elif buy == 10:
if money >= listprc[10]:
multiple = listmult[10]
money = money - listprc[10]
else:
print("You don't have enough money!")
else:
print("Error!")
names = input("Enter Your Name!")
system("cls")
sleep(2)
print("Welcome to Typing Game!")
sleep(1)
print("Here you can do in this game!")
sleep(1)
menupage = True
while menupage == True:
if money >= 1000 and money < 1000000:
test = money / 1000
mp = round(test) * 1000
test1 = money - mp
other = round(test)
other1 = round(test1)
testagain = str(other) + ',' + str(other1)
elif money >= 1000000 and money < 1000000000:
test = money / 1000000
other = round(test)
testagain = str(other) + 'M'
elif money >= 1000000000 and money < 1000000000000:
test = money / 1000000000
other = round(test)
testagain = str(other) + 'B'
else:
finish()
print("Your Money:",testagain,"Multiple:",multiple,"x\n\n")
print("[1] Start grinding money!")
print("[2] Upgrade Tools!")
menu = int(input("\n:"))
if menu == 1:
tutor()
menupage = False
grind = True
elif menu == 2:
shop()
else:
print("Sorry we couldn't find",menu,"page")
while grind == True:
uss = input("::")
if uss == 'exit':
grind = False
menupage = True
uss = input("enter anything to continue")
else:
duid = len(uss) * multiple
print("You got",duid)
money = money + duid