]> git.sesse.net Git - ultimatescore/blobdiff - config.js
Make the roster scripts executable.
[ultimatescore] / config.js
index 8c401aff8b8d29c932563cedd98a061dae644bcc..d9ef9fa40147e37a951320db749b651aa14b7c06 100644 (file)
--- a/config.js
+++ b/config.js
@@ -53,12 +53,97 @@ var ultimateconfig = {
                        'rank_offset': 12
                },
        },
-       'explain_third_cell': 'Results!S27',
+       'explain_third_cell': 'Results!S26',
+       'group_match_scores': [
+               {
+                       'stream_time_column': 1,  // 0-indexed.
+                       'team1_column': 3,
+                       'team1_score_column': 4,
+                       'team2_score_column': 5,
+                       'team2_column': 6,
+                       'first_row': 7,  // 1-indexed.
+                       'last_row': 19,  // 1-indexed, Inclusive.
+                       'stream_day': 6
+               },
+               {
+                       'team1_column': 8,
+                       'team1_score_column': 9,
+                       'team2_score_column': 10,
+                       'team2_column': 11,
+                       'first_row': 7,
+                       'last_row': 19
+               },
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 7,
+                       'last_row': 19
+               },
+               // Playoffs 9th–11th. (NOTE: These counts as both playoffs and groups?
+               // Would be problematic for schedules if they were on stream field.)
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 28,
+                       'last_row': 28,
+                       'group_name': 'Playoffs 9th–11th'
+               },
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 30,
+                       'last_row': 30,
+                       'group_name': 'Playoffs 9th–11th'
+               },
+               {
+                       'team1_column': 8,
+                       'team1_score_column': 9,
+                       'team2_score_column': 10,
+                       'team2_column': 11,
+                       'first_row': 33,
+                       'last_row': 33,
+                       'group_name': 'Playoffs 9th–11th'
+               },
+               // Playoffs 12th–14th.
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 29,
+                       'last_row': 29,
+                       'group_name': 'Playoffs 12th–14th'
+               },
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 31,
+                       'last_row': 31,
+                       'group_name': 'Playoffs 12th–14th'
+               },
+               {
+                       'team1_column': 13,
+                       'team1_score_column': 14,
+                       'team2_score_column': 15,
+                       'team2_column': 16,
+                       'first_row': 33,
+                       'last_row': 33,
+                       'group_name': 'Playoffs 12th–14th'
+               },
+       ],
 
        'playoff_games': [
                // Teams                        Field   Row    Match name     Mark name    Group name              Game day (default 7)
-               [ 'Z3',          'X5|Y5',       0,      0,     'P1',          false,       'Playoffs 9th–14th', ],
-               [ 'X4',          'Y5|Z5',       1,      0,     'P2',          false,       'Playoffs 9th–14th', ],
+               [ 'Z3',          'XY5',         0,      0,     'P1',          false,       'Playoffs 9th–14th', ],
+               [ 'X4',          'ZY5',         1,      0,     'P2',          false,       'Playoffs 9th–14th', ],
                [ 'Y4',          'Z4',          2,      0,     'P3',          false,       'Playoffs 9th–14th', ],
 
                [ 'X1',          'Y3',          0,      1,     'X1/Y3',       false,       'Quarterfinals',     ],  // Q1
@@ -66,15 +151,15 @@ var ultimateconfig = {
                [ 'X2',          'Z2',          0,      2,     'X2/Z2',       false,       'Quarterfinals'      ],  // Q3
                [ 'Y1',          'X3',          1,      2,     'Y1/X3',       false,       'Quarterfinals'      ],  // Q4
 
-               // Playoffs 9th–11th, on last field
+               // Playoffs 9th–11th, mostly on last field
                [ 'W P1',        'W P3',        2,      2,     'W P1/W P3',   false,       'Playoffs 9th–11th', ],
                [ 'W P2',        'W P3',        2,      4,     'W P2/W P3',   false,       'Playoffs 9th–11th', ],
-               [ 'W P1',        'W P2',        2,      6,     'W P1/W P2',   false,       'Playoffs 9th–11th', ],
+               [ 'W P1',        'W P2',        1,      7,     'W P1/W P2',   false,       'Playoffs 9th–11th', ],
 
-               // Playoffs 12th–14th, mostly on last field
+               // Playoffs 12th–14th, on last field
                [ 'L P1',        'L P3',        2,      3,     'L P1/L P3',   false,       'Playoffs 12th–14th', ],
                [ 'L P2',        'L P3',        2,      5,     'L P2/L P3',   false,       'Playoffs 12th–14th', ],
-               [ 'L P1',        'L P2',        1,      7,     'L P1/L P2',   false,       'Playoffs 12th–14th', ],
+               [ 'L P1',        'L P2',        2,      7,     'L P1/L P2',   false,       'Playoffs 12th–14th', ],
 
                // Semifinals
                [ 'W X1/Y3',     'W Z1/Y2',     0,      3,     'Semi 1',      false,       'Semifinals'         ],
@@ -82,10 +167,11 @@ var ultimateconfig = {
                [ 'W X2/Z2',     'W Y1/X3',     0,      4,     'Semi 2',      false,       'Semifinals'         ],
                [ 'L X2/Z2',     'L Y1/X3',     1,      4,     'L-semi 2',    false,       'Playoffs 5th–8th'   ],
 
+               // Final matches
                [ 'W L-semi 1',  'W L-semi 2',  0,      6,     '5th',         false,       'Match for 5th'      ],
                [ 'L L-semi 1',  'L L-semi 2',  1,      6,     '7th',         false,       'Match for 7th'      ],
                [ 'L semi 1',    'L semi 2',    0,      7,     '3rd',         false,       'Bronze final'       ],
-               [ 'W semi 1',    'W semi 2',    0,      7,     'Final',       false,       'Final'              ]
+               [ 'W semi 1',    'W semi 2',    0,      8,     'Final',       false,       'Final'              ]
        ],
        'playoff_games_start_row': 26,
        'playoff_games_cols': [