]> git.sesse.net Git - ultimatescore/blobdiff - config.js
Fix an issue where newer browsers would squeeze the secondary scorebugs.
[ultimatescore] / config.js
index d9371e1874a40aefc1b9544a7148685b568c97c4..37fb62bb800b56caf22d741490bd467b26e80363 100644 (file)
--- a/config.js
+++ b/config.js
@@ -1,51 +1,59 @@
 var ultimateconfig = {
-       'tournament_title': 'Trøndisk 2019',
-       'tournament_footer': 'www.plastkast.no | #trøndisk',
-       'exohack': false,
+       'tournament_title': 'NM 2020',
+       'tournament_footer': 'www.plastkast.no | #ultimatenm',
+       'exohack': true,
+       'best_thirds': false,
+       'kick_fifth_from_third': false,
 
        // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com.
-       'score_sheet_id': '16TOrQX-oOhuxSA478iE8h3l3CD72GyEqVsChZptayxo',
-       'roster_sheet_id': '1ACCrWaicEOFbeoY05SCbCvk2cHF6yAS9WwFOdNJxMIU',
+       'score_sheet_id': '1jU_iU6ca97Ag7j9CJI9lIVkpGrkRK0XRP5CePv-vxWw',
+       'score_sheet_index': 1088951921,  // #gid= in the URL.
+       'roster_sheet_id': '1fJgTYVQlqxc4AedVU6HEEgsUUGT_c2YmPD4h0ZilS1k',
        'api_key': 'AIzaSyAuP9yQn8g0bSay6r_RpGtpFeIbwprH1TU',
 
-       // Rank, name, points.
-       'score_sheet_cols': {
-               'Group A': [ 'Results!S', 'Results!T', 'Results!U' ],
-               'Group B': [ 'Results!W', 'Results!X', 'Results!Y' ],
-               'Group C': [ 'Results!AA', 'Results!AB', 'Results!AC' ]
+       'group_cells': {
+               'Group A': {
+                       // Rank, name, points.
+                       'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ],
+                       'point_total_start_row': 8,
+                       'ranking_list_start_row': 15,
+                       'ranking_list_explain_cell': 'Results!S21',
+                       'rank_offset': 1
+               },
+               'Group B': {
+                       // Rank, name, points.
+                       'score_sheet_cols': [ 'Results!W', 'Results!X', 'Results!Y' ],
+                       'point_total_start_row': 8,
+                       'ranking_list_start_row': 15,
+                       'ranking_list_explain_cell': 'Results!W21',
+                       'rank_offset': 1
+               }
        },
-
-       'point_total_start_row': 10,
-       'ranking_list_start_row': 17,
-       'ranking_list_explain_row': 23,
-       'explain_third_cell': 'Results!X36',
+       'explain_third_cell': null,
 
        'playoff_games': [
-               // Teams                        Field   Row    Match name     Mark name    Group name
-               [ 'X5',          'Y5',          0,      0,     'X5/Y5',       false,       'Playoffs 13th–15th' ],
-               [ 'X1',          'Y2',          1,      0,     'X1/Y2',       false,       'Quarterfinals'      ],
-               [ 'X2',          'Y3',          0,      1,     'X2/Y3',       false,       'Quarterfinals'      ],
-               [ 'Y1',          'X2',          1,      1,     'Y1/X2',       false,       'Quarterfinals'      ],
-               [ 'Z1',          'X3',          2,      1,     'Z1/X3',       false,       'Quarterfinals'      ],
-               [ 'X4',          'Z3',          0,      2,     'X4/Z3',       false,       'Playoffs 9th–12th'  ],
-               [ 'X5',          'Z5',          1,      2,     'X5/Z5',       false,       'Playoffs 13th–15th' ],
-               [ 'Y3',          'Z3',          2,      2,     'Y3/Z3',       false,       'Playoffs 9th–12th'  ],
-               [ 'W X1/Y2',     'W Z1/X3',     0,      3,     'Semi 1',      true,        'Semifinals'         ],
-               [ 'L X1/Y2',     'L Z1/X3',     1,      3,     'L-semi 1',    true,        'Playoffs 5th–8th'   ],
-               [ 'W X2/Y3',     'W Y2/X2',     0,      4,     'Semi 2',      true,        'Semifinals'         ],
-               [ 'L X2/Y3',     'L Y2/X2',     1,      4,     'L-semi 2',    true,        'Playoffs 5th–8th'   ],
-               [ 'Y5',          'Z5',          2,      4,     'Y5/Z5',       false,       'Playoffs 13th–15th' ],
-               [ 'W X4/Z3',     'W Y3/Z3',     0,      5,     '9th',         true,        'Match for 9th'      ],
-               [ 'L X4/Z3',     'L Y3/Z3',     1,      5,     '11th',        true,        'Match for 11th'     ],
-               [ 'L semi 1',    'L semi 2',    0,      6,     '3rd',         true,        'Bronze final'       ],
-               [ 'W L-semi 1',  'W L-semi 2',  1,      6,     '5th',         true,        'Match for 5th'      ],
-               [ 'L L-semi 1',  'L L-semi 2',  2,      6,     '7th',         true,        'Match for 7th'      ],
-               [ 'W semi 1',    'W semi 2',    0,      7,     'Final',       true,        'Final'              ]
+               // Teams                        Field   Row    Match name     Mark name    Group name              Game day (default 7)
+               [ 'A4',          'B5',          0,      0,     'A4/B5',       false,       '4th/5th crossover' ],
+               [ 'B4',          'A5',          1,      0,     'B4/A5',       false,       '4th/5th crossover' ],
+
+               [ 'A1',          'B2',          0,      1,     'Semi 1',      false,       'Semifinals'        ],
+               [ 'B1',          'A2',          1,      1,     'Semi 2',      false,       'Semifinals'        ],
+
+               [ 'B3',          'W A4/B5',     0,      2,     'L-semi 1',    false,       'Playoffs 5th–8th'  ],
+               [ 'W B4/A5',     'A3',          1,      2,     'L-semi 1',    false,       'Playoffs 5th–8th'  ],
+
+               [ 'L semi 1',    'L semi 2',    0,      3,     '3rd',         false,       'Bronze final'      ],
+               [ 'L A4/B5',     'L B4/A5',     1,      3,     '9th',         false,       'Match for 9th'     ],
+
+               [ 'W L-semi 1',  'W L-semi 2',  0,      4,     '5th',         false,       'Match for 5th'     ],
+               [ 'L L-semi 1',  'L L-semi 2',  1,      4,     '7th',         false,       'Match for 7th'     ],
+
+               [ 'W semi 1',    'W semi 2',    0,      5,     'Final',       false,       'Final'             ]
        ],
-       'playoff_games_start_row': 26,
+       'playoff_games_start_row': 21,
        'playoff_games_cols': [
                [ 3, 4, 5, 6 ],
-               [ 8, 9, 10, 11 ],
-               [ 13, 14, 15, 16 ],
-       ]
+               [ 8, 9, 10, 11 ]
+       ],
+       'playoff_games_start_row_detail_sheet': 38
 };