]> git.sesse.net Git - ultimatescore/blob - config.js
Make the roster scripts executable.
[ultimatescore] / config.js
1 var ultimateconfig = {
2         'tournament_title': 'Battle for Oak Hill 2020',
3         'tournament_footer': 'www.plastkast.no | #oakhill',
4         'exohack': true,
5         'kick_fifth_from_third': true,
6
7         // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com.
8         'score_sheet_id': '1vEKBGGG0DYkQUcePY9EHFaT1Nj_Ops57xHzKvIBCloU',
9         'score_sheet_index': 1088951921,  // #gid= in the URL.
10         'roster_sheet_id': '1is-fwcH_miWEaSJuP8aocvmNUESaS_HbFx58oTZ3EJ4',
11         'api_key': 'AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU',
12
13         'group_cells': {
14                 'Group A': {
15                         // Rank, name, points.
16                         'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
17                         'point_total_start_row': 8,
18                         'ranking_list_start_row': 15,
19                         'ranking_list_explain_cell': 'Results!S21',
20                         'rank_offset': 1
21                 },
22                 'Group B': {
23                         // Rank, name, points.
24                         'score_sheet_cols': [ 'Results!W', 'Results!X', 'Results!Y' ],
25                         'point_total_start_row': 8,
26                         'ranking_list_start_row': 15,
27                         'ranking_list_explain_cell': 'Results!W21',
28                         'rank_offset': 1
29                 },
30                 'Group C': {
31                         // Rank, name, points.
32                         'score_sheet_cols': [ 'Results!AA', 'Results!AB', 'Results!AC' ],
33                         'point_total_start_row': 8,
34                         'ranking_list_start_row': 15,
35                         'ranking_list_explain_cell': 'Results!AA21',
36                         'rank_offset': 1
37                 },
38                 'Playoffs 9th-13th': {
39                         // Rank, name, points.
40                         'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
41                         'point_total_start_row': null,
42                         'ranking_list_start_row': 34,
43                         'ranking_list_explain_cell': 'Results!W34',
44                         'rank_offset': 9
45                 }
46         },
47         'explain_third_cell': 'Results!S27',
48
49         'playoff_games': [
50                 // Teams                        Field   Row    Match name     Mark name    Group name              Game day (default 7)
51                 [ 'C5',          'A4',          0,      0,     'C5/A4',       false,       'Playoffs 9th–13th',    6 ],
52                 [ 'B4',          'C4',          1,      0,     'B4/C4',       false,       'Playoffs 9th–13th',    6 ],
53                 [ 'A4',          'B4',          0,      2,     'A4/B4',       false,       'Playoffs 9th–13th',    6 ],
54                 [ 'Z3',          'C5',          1,      2,     'Z3/C5',       false,       'Playoffs 9th–13th',,   6 ],
55                 [ 'C4',          'Z3',          0,      8,     'C4/Z3',       false,       'Playoffs 9th–13th' ],
56                 [ 'C5',          'B4',          1,      8,     'C5/B4',       false,       'Playoffs 9th–13th' ],
57
58                 [ 'X1',          'Y3',          0,      9,     'X1/Y3',       false,       'Quarterfinals'     ],  // Q1
59                 [ 'Z1',          'Y2',          1,      9,     'Z1/Y2',       false,       'Quarterfinals'     ],  // Q2
60                 [ 'X2',          'Z2',          0,     10,     'X2/Z2',       false,       'Quarterfinals'     ],  // Q3
61                 [ 'Y1',          'X3',          1,     10,     'Y1/X3',       false,       'Quarterfinals'     ],  // Q4
62
63                 [ 'C4',          'C5',          0,     11,     'C4/B5',       false,       'Playoffs 9th–13th' ],
64                 [ 'Z3',          'A4',          1,     11,     'Z3/A4',       false,       'Playoffs 9th–13th' ],
65
66                 [ 'W X1/Y3',     'W Z1/Y2',     0,     12,     'Semi 1',      true,        'Semifinals'        ],
67                 [ 'L X1/Y3',     'L Z1/Y3',     1,     12,     'L-semi 1',    true,        'Playoffs 5th–8th'  ],
68                 [ 'W X2/Z2',     'W Y1/X3',     0,     13,     'Semi 2',      true,        'Semifinals'        ],
69                 [ 'L X2/Z2',     'L Y1/X3',     1,     13,     'L-semi 2',    true,        'Playoffs 5th–8th'  ],
70
71                 [ 'B4',          'Z3',          0,     14,     'B4/Z3',       false,       'Playoffs 9th–13th' ],
72                 [ 'A4',          'C4',          1,     14,     'A4/C4',       false,       'Playoffs 9th–13th' ],
73
74                 [ 'W L-semi 1',  'W L-semi 2',  0,     15,     '5th',         true,        'Match for 5th'      ],
75                 [ 'L L-semi 1',  'L L-semi 2',  1,     15,     '7th',         true,        'Match for 7th'      ],
76                 [ 'L semi 1',    'L semi 2',    0,     16,     '3rd',         true,        'Bronze final'       ],
77                 [ 'W semi 1',    'W semi 2',    0,     17,     'Final',       true,        'Final'              ]
78         ],
79         'playoff_games_start_row': 19,
80         'playoff_games_cols': [
81                 [ 3, 4, 5, 6 ],
82                 [ 8, 9, 10, 11 ],
83                 [ 13, 14, 15, 16 ],
84         ]
85 };