-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
47 lines (45 loc) · 1.66 KB
/
constants.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
SCHEMA = ['epochseconds',
'player_a_id', 'player_a_rank', 'player_a_mmr', 'player_a_race',
'player_b_id', 'player_b_rank', 'player_b_mmr', 'player_b_race',
'map', 'turnrate', 'latency', 'uptime', 'outcome']
SCHEMA_LEN = 14
assert SCHEMA_LEN == len(SCHEMA)
OPPONENT_RACE_IDX = 8
RESULT_IDX = SCHEMA_LEN - 1
ARTOSIS_NAME_IDX = 1
OPPONENT_NAME_IDX = 5
ARTOSIS_MMR_IDX = 3
OPPONENT_MMR_IDX = 7
TURNRATE_IDX = 10
NAME_PATTERNS = {'artosis': 'artosis',
'arto': 'artosis',
'valks': 'artosis',
'canadadry': 'artosis',
'artasis': 'artosis',
'newgear': 'artosis',
'didntmake': 'artosis',
'screamingbird': 'artosis',
'monkat': 'artosis',
's.a.l.t.': 'artosis',
'.alt': 'artosis',
'.a.lt': 'artosis',
'.a.l.t': 'artosis',
'bsl14-1': 'artosis',
'bsl14-2': 'artosis',
'bsl14-3': 'artosis',
'asdsaasdads': 'artosis',
'adsthrght': 'artosis',
'asdasdasdas2312': 'artosis',
'asdasdasdas': 'artosis',
'goliathrange': 'artosis'}
MAP_PATTERNS = {'polypoid': 'polypoid',
'potypoid': 'polypoid',
'poly': 'polypoid',
'eclipse': 'eclipse',
'clipse': 'eclipse',
'good night': 'goodnight',
'good': 'goodnight',
'largo': 'largo',
'larg': 'largo',
'ood night': 'goodnight',
'revolver': 'revolver'}