-
Notifications
You must be signed in to change notification settings - Fork 5
/
players.py
47 lines (43 loc) · 1012 Bytes
/
players.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
class Players:
def __init__(self, rank):
self.rank = rank
# class Human_player(Players):
# def __init__(self, rank, driver, kart):
# super().__init__(rank, driver, kart)
# class CPU_player(Players):
# def __init__(self, rank, driver, kart):
# super().__init__(rank, driver, kart)
#
"""ToDo: refactor drivers and karts as part of player class using dictionaries to hold the attributes"""
karts = {
"Standard": {
"Speed": 6.5,
"Handling": 4,
"Drift": 9,
"Acceleration": 6.5
},
"Mushmellow": {
"Speed": 4.3,
"Handling": 6.9,
"Drift": 6.9,
"Acceleration": 8.7
},
"Powerflower": {
"Speed": 6.7,
"Handling": 4.3,
"Drift": 9,
"Acceleration": 7.7
},
"Dry Bomber": {
"Speed": 3.4,
"Handling": 9.8,
"Drift": 3.9,
"Acceleration": 9.5
}
}
drivers = {
"Veteran": {},
"Crafty": {},
"Cavalier": {},
"Joe": {},
}