File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ export function getFormatName(format: RoundFormat): string {
88 return 'Best of 2' ;
99 case '3' :
1010 return 'Best of 3' ;
11+ case '5' :
12+ return 'Best of 5' ;
1113 case 'a' :
1214 return 'Average of 5' ;
1315 case 'm' :
@@ -20,6 +22,7 @@ export function getFormatRanking(format: RoundFormat): RankingType[] {
2022 case '1' :
2123 case '2' :
2224 case '3' :
25+ case '5' :
2326 return [ 'single' ] ;
2427 case 'a' :
2528 case 'm' :
@@ -35,6 +38,8 @@ export function getFormatExpectedSolves(format: RoundFormat): number {
3538 return 2 ;
3639 case '3' :
3740 return 3 ;
41+ case '5' :
42+ return 5 ;
3843 case 'a' :
3944 return 5 ;
4045 case 'm' :
@@ -50,6 +55,7 @@ export function getFormatTrimBest(format: RoundFormat): number {
5055 case 'm' :
5156 return 0 ;
5257 case 'a' :
58+ case '5' :
5359 return 1 ;
5460 }
5561}
@@ -62,6 +68,7 @@ export function getFormatTrimWorst(format: RoundFormat): number {
6268 case 'm' :
6369 return 0 ;
6470 case 'a' :
71+ case '5' :
6572 return 1 ;
6673 }
6774}
Original file line number Diff line number Diff line change 1- export type RoundFormat = '1' | '2' | '3' | 'a' | 'm' ;
1+ export type RoundFormat = '1' | '2' | '3' | '5' | ' a' | 'm' ;
You can’t perform that action at this time.
0 commit comments