]> git.sesse.net Git - ultimatescore/commitdiff
Start working on Trøndisk 2021.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2021 22:19:19 +0000 (00:19 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 26 Sep 2021 22:19:19 +0000 (00:19 +0200)
config.js
score.scss
update_sheets.js

index fb91c0485545900e02956584155172d0dd3b4bee..6cc7bb9ce3e9d7b8273f071dd1fd6583e67b3ba6 100644 (file)
--- a/config.js
+++ b/config.js
@@ -1,14 +1,14 @@
 var ultimateconfig = {
-       'tournament_title': 'Battle for Oak Hill 2020',
-       'tournament_footer': 'www.plastkast.no | #oakhill',
-       'exohack': true,
+       'tournament_title': 'Trøndisk 2021',
+       'tournament_footer': 'www.plastkast.no | #trøndisk',
+       'exohack': false,
        'best_thirds': true,
-       'kick_fifth_from_third': true,
+       'kick_fifth_from_third': true,  // If true, games against the 5th in the group don't count when ranking thirds.
 
        // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com.
-       'score_sheet_id': '1vEKBGGG0DYkQUcePY9EHFaT1Nj_Ops57xHzKvIBCloU',
+       'score_sheet_id': '1dnTjgWEZflVOf_IImbF6-d_JhE3GCchJ7SGTklaiJzs',
        'score_sheet_index': 1088951921,  // #gid= in the URL.
-       'roster_sheet_id': '1is-fwcH_miWEaSJuP8aocvmNUESaS_HbFx58oTZ3EJ4',
+       'roster_sheet_id': '1hd_pYvXX0dM0iFryXuHoHpkNUZeBpvsezDhpdpODprk',
        'api_key': 'AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU',
 
        'group_cells': {
@@ -36,7 +36,7 @@ var ultimateconfig = {
                        'ranking_list_explain_cell': 'Results!AA21',
                        'rank_offset': 1
                },
-               'Playoffs 9th-13th': {
+               'Playoffs 9th-14th': {
                        // Rank, name, points.
                        'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
                        'point_total_start_row': null,
@@ -49,35 +49,37 @@ var ultimateconfig = {
 
        'playoff_games': [
                // Teams                        Field   Row    Match name     Mark name    Group name              Game day (default 7)
-               [ 'C5',          'A4',          0,      0,     'C5/A4',       false,       'Playoffs 9th–13th',    6 ],
-               [ 'B4',          'C4',          1,      0,     'B4/C4',       false,       'Playoffs 9th–13th',    6 ],
-               [ 'X1',          'Y3',          0,      1,     'X1/Y3',       false,       'Quarterfinals',        6 ],  // Q1
-               [ 'Z1',          'Y2',          1,      1,     'Z1/Y2',       false,       'Quarterfinals',        6 ],  // Q2
-               [ 'A4',          'B4',          0,      2,     'A4/B4',       false,       'Playoffs 9th–13th',    6 ],
-               [ 'Z3',          'C5',          1,      2,     'Z3/C5',       false,       'Playoffs 9th–13th',    6 ],
-               [ 'C4',          'Z3',          0,      8,     'C4/Z3',       false,       'Playoffs 9th–13th' ],
-               [ 'C5',          'B4',          1,      8,     'C5/B4',       false,       'Playoffs 9th–13th' ],
+               [ 'Z3',          'X5|Y5',       0,      0,     'P1',          false,       'Playoffs 9th–14th', ],
+               [ 'X4',          'Y5|Z5',       1,      0,     'P2',          false,       'Playoffs 9th–14th', ],
+               [ 'Y4',          'Z4',          2,      0,     'P3',          false,       'Playoffs 9th–14th', ],
 
-               [ 'X2',          'Z2',          0,      9,     'X2/Z2',       false,       'Quarterfinals'     ],  // Q3
-               [ 'Y1',          'X3',          1,      9,     'Y1/X3',       false,       'Quarterfinals'     ],  // Q4
+               [ 'X1',          'Y3',          0,      1,     'X1/Y3',       false,       'Quarterfinals',     ],  // Q1
+               [ 'Z1',          'Y2',          1,      1,     'Z1/Y2',       false,       'Quarterfinals',     ],  // Q2
+               [ 'X2',          'Z2',          0,      2,     'X2/Z2',       false,       'Quarterfinals'      ],  // Q3
+               [ 'Y1',          'X3',          1,      2,     'Y1/X3',       false,       'Quarterfinals'      ],  // Q4
 
-               [ 'C4',          'C5',          0,     10,     'C4/B5',       false,       'Playoffs 9th–13th' ],
-               [ 'Z3',          'A4',          1,     10,     'Z3/A4',       false,       'Playoffs 9th–13th' ],
+               // Playoffs 9th–11th, 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 X1/Y3',     'W Z1/Y2',     0,     11,     'Semi 1',      false,       'Semifinals'        ],
-               [ 'L X1/Y3',     'L Z1/Y2',     1,     11,     'L-semi 1',    false,       'Playoffs 5th–8th'  ],
-               [ 'W X2/Z2',     'W Y1/X3',     0,     12,     'Semi 2',      false,       'Semifinals'        ],
-               [ 'L X2/Z2',     'L Y1/X3',     1,     12,     'L-semi 2',    false,       'Playoffs 5th–8th'  ],
+               // Playoffs 12th–14th, mostly 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', ],
 
-               [ 'B4',          'Z3',          0,     13,     'B4/Z3',       false,       'Playoffs 9th–13th' ],
-               [ 'A4',          'C4',          1,     13,     'A4/C4',       false,       'Playoffs 9th–13th' ],
+               // Semifinals
+               [ 'W X1/Y3',     'W Z1/Y2',     0,      3,     'Semi 1',      false,       'Semifinals'         ],
+               [ 'L X1/Y3',     'L Z1/Y2',     1,      3,     'L-semi 1',    false,       'Playoffs 5th–8th'   ],
+               [ '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'   ],
 
-               [ 'W L-semi 1',  'W L-semi 2',  1,     14,     '5th',         false,       'Match for 5th'      ],
-               [ 'L L-semi 1',  'L L-semi 2',  1,     15,     '7th',         false,       'Match for 7th'      ],
-               [ 'L semi 1',    'L semi 2',    0,     14,     '3rd',         false,       'Bronze final'       ],
-               [ 'W semi 1',    'W semi 2',    0,     16,     'Final',       false,       'Final'              ]
+               [ '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'              ]
        ],
-       'playoff_games_start_row': 19,
+       'playoff_games_start_row': 26,
        'playoff_games_cols': [
                [ 3, 4, 5, 6 ],
                [ 8, 9, 10, 11 ],
index ac0fb61d4576576c2784d2d2ad1dff0be7fcc00f..179e0fa99379a3a90f6942f1c3acf52fb23c3d0b 100644 (file)
@@ -1,4 +1,4 @@
-$trondisk: false;
+$trondisk: true;
 
 * {
   box-sizing: border-box;
index f4e01e635d83b4c5ecd75b159a6f9b6057605a8e..fb7c96d6814d6ec89c41692dbc0b8ce3190f1a34 100644 (file)
@@ -394,7 +394,7 @@ function fill_playoff(replacements, teams) {
                };
                possibly_update_oauth_key(function() {
                        post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + '/values:batchUpdate?key=' + ultimateconfig['api_key'], json, function(response) {
-                               get_group('Playoffs 9th-13th', function(response_l) { publish_group_rank(response_l, 'Playoffs 9th-13th'); });
+                               get_group('Playoffs 9th-14th', function(response_l) { publish_group_rank(response_l, 'Playoffs 9th-14th'); });
                        }, current_oauth_access_token);
                        post_json('https://sheets.googleapis.com/v4/spreadsheets/' + ultimateconfig['score_sheet_id'] + ':batchUpdate?key=' + ultimateconfig['api_key'], meta_json, function(response) {}, current_oauth_access_token);
                });