X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config.js;h=f394e518ca7bcdb5f8cdf9ae1386f0b35dff5cce;hb=d14a429ea15184ad2659ba149f3caabef5bfd023;hp=50ff0b8b5b4b9a8751eec0feb9ae857ac690efd4;hpb=ac16529a01694e4dc32b47bf8d7d1ccf63a22de3;p=ultimatescore diff --git a/config.js b/config.js index 50ff0b8..f394e51 100644 --- a/config.js +++ b/config.js @@ -1,55 +1,79 @@ var ultimateconfig = { - 'tournament_title': 'Trøndisk 2019', - 'tournament_footer': 'www.plastkast.no | #trøndisk', - 'exohack': false, + 'tournament_title': 'Battle for Oak Hill 2020', + 'tournament_footer': 'www.plastkast.no | #oakhill', + 'exohack': true, // Share both sheets with ultimate-nm-2018@solskogen-cubemap.iam.gserviceaccount.com. - 'score_sheet_id': '16TOrQX-oOhuxSA478iE8h3l3CD72GyEqVsChZptayxo', + 'score_sheet_id': '1vEKBGGG0DYkQUcePY9EHFaT1Nj_Ops57xHzKvIBCloU', 'score_sheet_index': 1088951921, // #gid= in the URL. - 'roster_sheet_id': '1ACCrWaicEOFbeoY05SCbCvk2cHF6yAS9WwFOdNJxMIU', + 'roster_sheet_id': '1is-fwcH_miWEaSJuP8aocvmNUESaS_HbFx58oTZ3EJ4', '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 + }, + 'Group C': { + // Rank, name, points. + 'score_sheet_cols': [ 'Results!AA', 'Results!AB', 'Results!AC' ], + 'point_total_start_row': 8, + 'ranking_list_start_row': 15, + 'ranking_list_explain_cell': 'Results!AA21', + 'rank_offset': 1 + }, + 'Playoffs 9th-13th': { + // Rank, name, points. + 'score_sheet_cols': [ 'Results!S', 'Results!T', 'Results!U' ], + 'point_total_start_row': null, + 'ranking_list_start_row': 34, + 'ranking_list_explain_cell': 'Results!W34', + 'rank_offset': 9 + } }, - - 'point_total_start_row': 8, - 'ranking_list_start_row': 15, - 'ranking_list_explain_row': 21, - 'explain_third_cell': 'Results!S26', + 'explain_third_cell': 'Results!S27', 'playoff_games': [ - // Teams Field Row Match name Mark name Group name - [ 'C5', 'A4', 0, 0, 'C5/A4', false, 'Playoffs 9th–13th' ], - [ 'B4', 'C4', 1, 0, 'B4/C4', false, 'Playoffs 9th–13th' ], - [ 'A4', 'B4', 0, 2, 'A4/B4', false, 'Playoffs 9th–13th' ], - [ 'Z3', 'C5', 1, 2, 'Z3/C5', false, 'Playoffs 9th–13th' ], - [ 'C4', 'Z3', 0, 7, 'C4/Z3', false, 'Playoffs 9th–13th' ], - [ 'C5', 'B4', 1, 7, 'C5/B4', false, 'Playoffs 9th–13th' ], - - [ 'C1', 'B2', 0, 8, 'C1/B2', false, 'Quarterfinals' ], // Q1 - [ 'A1', 'Y3', 1, 8, 'A1/Y3', false, 'Quarterfinals' ], // Q2 - [ 'A2', 'C2', 0, 9, 'A2/C2', false, 'Quarterfinals' ], // Q3 - [ 'B1', 'X3', 1, 9, 'B1/X3', false, 'Quarterfinals' ], // Q4 - - [ 'C4', 'C5', 0, 10, 'C4/B5', false, 'Playoffs 9th–13th' ], - [ 'Z3', 'A4', 1, 10, 'Z3/A4', false, 'Playoffs 9th–13th' ], - - [ 'W C1/B2', 'W A1/Y3', 0, 11, 'Semi 1', true, 'Semifinals' ], - [ 'L C1/B2', 'L A1/Y3', 1, 11, 'L-semi 1', true, 'Playoffs 5th–8th' ], - [ 'W A2/C2', 'W B1/X3', 0, 12, 'Semi 2', true, 'Semifinals' ], - [ 'L A2/C2', 'L B1/X3', 1, 12, 'L-semi 2', true, 'Playoffs 5th–8th' ], - - [ 'B4', 'Z3', 0, 13, 'B4/Z3', false, 'Playoffs 9th–13th' ], - [ 'A4', 'C4', 1, 13, 'A4/C4', false, 'Playoffs 9th–13th' ], - - [ 'W L-semi 1', 'W L-semi 2', 0, 14, '5th', true, 'Match for 5th' ], - [ 'L L-semi 1', 'L L-semi 2', 1, 14, '7th', true, 'Match for 7th' ], - [ 'L semi 1', 'L semi 2', 0, 15, '3rd', true, 'Bronze final' ], - [ 'W semi 1', 'W semi 2', 0, 16, 'Final', true, 'Final' ] + // 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 ], + [ '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' ], + + [ 'X1', 'Y3', 0, 9, 'X1/Y3', false, 'Quarterfinals' ], // Q1 + [ 'Z1', 'Y2', 1, 9, 'Z1/Y2', false, 'Quarterfinals' ], // Q2 + [ 'X2', 'Z2', 0, 10, 'X2/Z2', false, 'Quarterfinals' ], // Q3 + [ 'Y1', 'X3', 1, 10, 'Y1/X3', false, 'Quarterfinals' ], // Q4 + + [ 'C4', 'C5', 0, 11, 'C4/B5', false, 'Playoffs 9th–13th' ], + [ 'Z3', 'A4', 1, 11, 'Z3/A4', false, 'Playoffs 9th–13th' ], + + [ 'W X1/Y3', 'W Z1/Y2', 0, 12, 'Semi 1', true, 'Semifinals' ], + [ 'L X1/Y3', 'L Z1/Y3', 1, 12, 'L-semi 1', true, 'Playoffs 5th–8th' ], + [ 'W X2/Z2', 'W Y1/X3', 0, 13, 'Semi 2', true, 'Semifinals' ], + [ 'L X2/Z2', 'L Y1/X3', 1, 13, 'L-semi 2', true, 'Playoffs 5th–8th' ], + + [ 'B4', 'Z3', 0, 14, 'B4/Z3', false, 'Playoffs 9th–13th' ], + [ 'A4', 'C4', 1, 14, 'A4/C4', false, 'Playoffs 9th–13th' ], + + [ 'W L-semi 1', 'W L-semi 2', 0, 15, '5th', true, 'Match for 5th' ], + [ 'L L-semi 1', 'L L-semi 2', 1, 15, '7th', true, 'Match for 7th' ], + [ 'L semi 1', 'L semi 2', 0, 16, '3rd', true, 'Bronze final' ], + [ 'W semi 1', 'W semi 2', 0, 17, 'Final', true, 'Final' ] ], 'playoff_games_start_row': 19, 'playoff_games_cols': [