-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource Code.py
More file actions
166 lines (143 loc) · 6.02 KB
/
Source Code.py
File metadata and controls
166 lines (143 loc) · 6.02 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
import time
import datetime
import random
posts = {1: 'st', 2: 'nd', 3: 'rd', 4: 'th', 5: 'th'}
def positonal(number):
if number % 100 >= 10 and number % 100 <= 20:
post = 'th'
else:
post = posts.get(number % 10, 'th')
return str(number) + post
print("""
,------. ,--. ,---. ,--.
| .--. ',--.--. ,---. ,---. ,--.--. ,--,--.,--,--,--. | |-.,--. ,--. ' .-' ,---. | |-.
| '--' || .--'| .-. || .-. || .--'' ,-. || | | .-. '\ ' / `. `-. | .-. :| .-. '
| | --' | | ' '-' '' '-' '| | \ '-' || | | | | `-' | \ ' .-' |\ --.| `-' |
`--' `--' `---' .`- / `--' `--`--'`--`--`--' `---'.-' / `-----' `----' `---'
`---' `---'
""")
time.sleep(2)
print("Valorant Stat Tracker [Keep track of your stats.]")
time.sleep(3)
limit = 70
assist_responses = ["Damn bro, people seem to be scared of you be more friendly.",
"Bro you are really good if people don't be stealing your kills like that",
"Holy jebuz lord. Well played don't let them steal your kills like that!"]
death_responses = ["Damn bro, you're not very good, you'll improve the longer you play",
"Holy cow, you aren't doing very well, try watching some videos to improve?",
"Seems like you're getting better to me, your stats are improving"]
while True:
your_score = int(input("How many rounds did your team win?\n"))
while True:
if your_score > 13:
print(f"Sorry, current round limit is 13. {your_score} is invialid")
time.sleep(2)
your_score = int(input("How many rounds did your team win?\n"))
else:
break
enemy_score = int(input("How many rounds did the enemy win?\n"))
while True:
if your_score == 13:
if enemy_score >= 13:
print(f"Sorry, you can't draw with enemy team. {enemy_score} is invalid must be 12 or lower")
time.sleep(2)
enemy_score = int(input("How many rounds did the enemy win?\n"))
elif enemy_score <= 12:
break
if your_score < 13:
if enemy_score < 13:
print(f"Sorry, it seems you have lost the game. {enemy_score} is invalid, must be 13.")
time.sleep(2)
enemy_score = int(input("How many rounds did the enemy win?\n"))
elif enemy_score == 13:
break
elif enemy_score > 13:
print(f"The enemy team can't exceed Valorant's round limit of 13. {enemy_score} is invalid, must be 13 or lower.")
time.sleep(2)
enemy_score = int(input("How many rounds did the enemy win?\n"))
kills = int(input("How many kills did you get?\n"))
while True:
if kills > limit:
print("That is basically impossible. You'd have to get 6 kills or more a round for that...")
time.sleep(2)
kills = int(input("How many kills did you get?\n"))
if kills >= 25:
print("you're pro man, damn..")
time.sleep(2)
break
elif kills <= 15:
print(f"{random.choice(death_responses)}")
time.sleep(2)
break
else:
break
deaths = int(input("How many deaths did you have?\n"))
while True:
if deaths > 30:
print("Wow, that's nearly impossible due to there being only 25 rounds in a game including Sage's Ultimate.")
time.sleep(2)
deaths = int(input("How many deaths did you have?\n"))
if deaths >= 20:
print(f"{random.choice(death_responses)}")
break
elif deaths <= 5:
print("You are pro men")
break
else:
break
assists = int(input("How many assists did you have\n"))
while True:
if assists > 10:
print("Damn bro tell them to stop your stealing your kills...")
break
elif assists < 10:
print(f"{random.choice(assist_responses)}")
break
leaderboard_placement = int(input("What place were you on the leaderboard?\n"))
while True:
if leaderboard_placement > 5:
print(f"Sorry, but there are only 5 spots on the leaderboard. {leaderboard_placement} is invalid")
time.sleep(2)
leaderboard_placement = int(input("What place were you on the leaderboard?\n"))
else:
break
nn = positonal(leaderboard_placement)
kd = kills / deaths
kda = kills / deaths / assists
ka = kills / assists
da = deaths / assists
f = datetime.datetime.now()
time = f.strftime("%x")
dayt = f.strftime("%X")
x = open("Valorant Games.txt", "a")
x.write(f"""
=======================================
| Date/Time of save
=======================================
| Date - {time}
| Time Recorded - {dayt}
=======================================
| Game Info
=======================================
| Rounds Won - {your_score}
| Rounds Lost - {enemy_score}
=======================================
| Personal Info
=======================================
| Kils - {kills}
| Deaths - {deaths}
| Assists - {assists}
| Leaderboard Placement - {nn}
=======================================
| In-depth Info
=======================================
| K/D - {round(kd, 2)}
| K/D/A - {round(kda, 2)}
| K/A - {round(ka, 2)}
| D/A - {round(da, 2)}
=======================================
""")
x.close()
print("Everything has been written in a file")
end = input("Press enter to exit the program")
exit()