-
Notifications
You must be signed in to change notification settings - Fork 23
/
Team.py
40 lines (38 loc) · 1.39 KB
/
Team.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
class Team:
"""A class for keeping info about the teams"""
color_dict = {
1610612737: ('#E13A3E', 'ATL'),
1610612738: ('#008348', 'BOS'),
1610612751: ('#061922', 'BKN'),
1610612766: ('#1D1160', 'CHA'),
1610612741: ('#CE1141', 'CHI'),
1610612739: ('#860038', 'CLE'),
1610612742: ('#007DC5', 'DAL'),
1610612743: ('#4D90CD', 'DEN'),
1610612765: ('#006BB6', 'DET'),
1610612744: ('#FDB927', 'GSW'),
1610612745: ('#CE1141', 'HOU'),
1610612754: ('#00275D', 'IND'),
1610612746: ('#ED174C', 'LAC'),
1610612747: ('#552582', 'LAL'),
1610612763: ('#0F586C', 'MEM'),
1610612748: ('#98002E', 'MIA'),
1610612749: ('#00471B', 'MIL'),
1610612750: ('#005083', 'MIN'),
1610612740: ('#002B5C', 'NOP'),
1610612752: ('#006BB6', 'NYK'),
1610612760: ('#007DC3', 'OKC'),
1610612753: ('#007DC5', 'ORL'),
1610612755: ('#006BB6', 'PHI'),
1610612756: ('#1D1160', 'PHX'),
1610612757: ('#E03A3E', 'POR'),
1610612758: ('#724C9F', 'SAC'),
1610612759: ('#BAC3C9', 'SAS'),
1610612761: ('#CE1141', 'TOR'),
1610612762: ('#00471B', 'UTA'),
1610612764: ('#002B5C', 'WAS'),
}
def __init__(self, id):
self.id = id
self.color = Team.color_dict[id][0]
self.name = Team.color_dict[id][1]