]> git.sesse.net Git - ultimatescore/blob - config.js
Make the roster scripts executable.
[ultimatescore] / config.js
1 var ultimateconfig = {
2         'tournament_title': 'Trøndisk 2021',
3         'tournament_footer': 'www.plastkast.no | #trøndisk',
4         'exohack': false,
5         'best_thirds': true,
6         'kick_fifth_from_third': true,  // If true, games against the 5th in the group don't count when ranking thirds.
7
8         // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com.
9         'score_sheet_id': '1dnTjgWEZflVOf_IImbF6-d_JhE3GCchJ7SGTklaiJzs',
10         'score_sheet_index': 1088951921,  // #gid= in the URL.
11         'roster_sheet_id': '1u4Fof_gespv1yUWm4TcusqgkwV2qpTTQaLqFqoXnwNs',
12         'api_key': 'AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU',
13
14         'group_cells': {
15                 'Group A': {
16                         // Rank, name, points.
17                         'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
18                         'point_total_start_row': 8,
19                         'ranking_list_start_row': 15,
20                         'ranking_list_explain_cell': 'Results!S21',
21                         'rank_offset': 1
22                 },
23                 'Group B': {
24                         // Rank, name, points.
25                         'score_sheet_cols': [ 'Results!W', 'Results!X', 'Results!Y' ],
26                         'point_total_start_row': 8,
27                         'ranking_list_start_row': 15,
28                         'ranking_list_explain_cell': 'Results!W21',
29                         'rank_offset': 1
30                 },
31                 'Group C': {
32                         // Rank, name, points.
33                         'score_sheet_cols': [ 'Results!AA', 'Results!AB', 'Results!AC' ],
34                         'point_total_start_row': 8,
35                         'ranking_list_start_row': 15,
36                         'ranking_list_explain_cell': 'Results!AA21',
37                         'rank_offset': 1
38                 },
39                 'Playoffs 9th–11th': {
40                         // Rank, name, points.
41                         'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
42                         'point_total_start_row': null,
43                         'ranking_list_start_row': 33,
44                         'ranking_list_explain_cell': 'Results!W30',
45                         'rank_offset': 9
46                 },
47                 'Playoffs 12th–14th': {
48                         // Rank, name, points.
49                         'score_sheet_cols': [ 'Results!AA', 'Results!AB', 'Results!AC' ],
50                         'point_total_start_row': null,
51                         'ranking_list_start_row': 33,
52                         'ranking_list_explain_cell': 'Results!W33',
53                         'rank_offset': 12
54                 },
55         },
56         'explain_third_cell': 'Results!S26',
57         'group_match_scores': [
58                 {
59                         'stream_time_column': 1,  // 0-indexed.
60                         'team1_column': 3,
61                         'team1_score_column': 4,
62                         'team2_score_column': 5,
63                         'team2_column': 6,
64                         'first_row': 7,  // 1-indexed.
65                         'last_row': 19,  // 1-indexed, Inclusive.
66                         'stream_day': 6
67                 },
68                 {
69                         'team1_column': 8,
70                         'team1_score_column': 9,
71                         'team2_score_column': 10,
72                         'team2_column': 11,
73                         'first_row': 7,
74                         'last_row': 19
75                 },
76                 {
77                         'team1_column': 13,
78                         'team1_score_column': 14,
79                         'team2_score_column': 15,
80                         'team2_column': 16,
81                         'first_row': 7,
82                         'last_row': 19
83                 },
84                 // Playoffs 9th–11th. (NOTE: These counts as both playoffs and groups?
85                 // Would be problematic for schedules if they were on stream field.)
86                 {
87                         'team1_column': 13,
88                         'team1_score_column': 14,
89                         'team2_score_column': 15,
90                         'team2_column': 16,
91                         'first_row': 28,
92                         'last_row': 28,
93                         'group_name': 'Playoffs 9th–11th'
94                 },
95                 {
96                         'team1_column': 13,
97                         'team1_score_column': 14,
98                         'team2_score_column': 15,
99                         'team2_column': 16,
100                         'first_row': 30,
101                         'last_row': 30,
102                         'group_name': 'Playoffs 9th–11th'
103                 },
104                 {
105                         'team1_column': 8,
106                         'team1_score_column': 9,
107                         'team2_score_column': 10,
108                         'team2_column': 11,
109                         'first_row': 33,
110                         'last_row': 33,
111                         'group_name': 'Playoffs 9th–11th'
112                 },
113                 // Playoffs 12th–14th.
114                 {
115                         'team1_column': 13,
116                         'team1_score_column': 14,
117                         'team2_score_column': 15,
118                         'team2_column': 16,
119                         'first_row': 29,
120                         'last_row': 29,
121                         'group_name': 'Playoffs 12th–14th'
122                 },
123                 {
124                         'team1_column': 13,
125                         'team1_score_column': 14,
126                         'team2_score_column': 15,
127                         'team2_column': 16,
128                         'first_row': 31,
129                         'last_row': 31,
130                         'group_name': 'Playoffs 12th–14th'
131                 },
132                 {
133                         'team1_column': 13,
134                         'team1_score_column': 14,
135                         'team2_score_column': 15,
136                         'team2_column': 16,
137                         'first_row': 33,
138                         'last_row': 33,
139                         'group_name': 'Playoffs 12th–14th'
140                 },
141         ],
142
143         'playoff_games': [
144                 // Teams                        Field   Row    Match name     Mark name    Group name              Game day (default 7)
145                 [ 'Z3',          'XY5',         0,      0,     'P1',          false,       'Playoffs 9th–14th', ],
146                 [ 'X4',          'ZY5',         1,      0,     'P2',          false,       'Playoffs 9th–14th', ],
147                 [ 'Y4',          'Z4',          2,      0,     'P3',          false,       'Playoffs 9th–14th', ],
148
149                 [ 'X1',          'Y3',          0,      1,     'X1/Y3',       false,       'Quarterfinals',     ],  // Q1
150                 [ 'Z1',          'Y2',          1,      1,     'Z1/Y2',       false,       'Quarterfinals',     ],  // Q2
151                 [ 'X2',          'Z2',          0,      2,     'X2/Z2',       false,       'Quarterfinals'      ],  // Q3
152                 [ 'Y1',          'X3',          1,      2,     'Y1/X3',       false,       'Quarterfinals'      ],  // Q4
153
154                 // Playoffs 9th–11th, mostly on last field
155                 [ 'W P1',        'W P3',        2,      2,     'W P1/W P3',   false,       'Playoffs 9th–11th', ],
156                 [ 'W P2',        'W P3',        2,      4,     'W P2/W P3',   false,       'Playoffs 9th–11th', ],
157                 [ 'W P1',        'W P2',        1,      7,     'W P1/W P2',   false,       'Playoffs 9th–11th', ],
158
159                 // Playoffs 12th–14th, on last field
160                 [ 'L P1',        'L P3',        2,      3,     'L P1/L P3',   false,       'Playoffs 12th–14th', ],
161                 [ 'L P2',        'L P3',        2,      5,     'L P2/L P3',   false,       'Playoffs 12th–14th', ],
162                 [ 'L P1',        'L P2',        2,      7,     'L P1/L P2',   false,       'Playoffs 12th–14th', ],
163
164                 // Semifinals
165                 [ 'W X1/Y3',     'W Z1/Y2',     0,      3,     'Semi 1',      false,       'Semifinals'         ],
166                 [ 'L X1/Y3',     'L Z1/Y2',     1,      3,     'L-semi 1',    false,       'Playoffs 5th–8th'   ],
167                 [ 'W X2/Z2',     'W Y1/X3',     0,      4,     'Semi 2',      false,       'Semifinals'         ],
168                 [ 'L X2/Z2',     'L Y1/X3',     1,      4,     'L-semi 2',    false,       'Playoffs 5th–8th'   ],
169
170                 // Final matches
171                 [ 'W L-semi 1',  'W L-semi 2',  0,      6,     '5th',         false,       'Match for 5th'      ],
172                 [ 'L L-semi 1',  'L L-semi 2',  1,      6,     '7th',         false,       'Match for 7th'      ],
173                 [ 'L semi 1',    'L semi 2',    0,      7,     '3rd',         false,       'Bronze final'       ],
174                 [ 'W semi 1',    'W semi 2',    0,      8,     'Final',       false,       'Final'              ]
175         ],
176         'playoff_games_start_row': 26,
177         'playoff_games_cols': [
178                 [ 3, 4, 5, 6 ],
179                 [ 8, 9, 10, 11 ],
180                 [ 13, 14, 15, 16 ],
181         ],
182         'playoff_games_start_row_detail_sheet': 38
183 };