@my-swu/simulator-client / LimitedTournamentStructure
Type Alias: LimitedTournamentStructure
LimitedTournamentStructure = {
rounds?:number|null;type:"swiss"; } | {cutSize:number;rounds?:number|null;type:"swissTopCut"; } | {type:"roundRobin"; } | {type:"singleElimination"; }
Defined in: packages/ts-sdk/src/generated/types/common.ts:3341
Tournament format selected by the lobby host.
Example:
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'
const limitedTournamentStructure: LimitedTournamentStructure = {
"type": "swiss",
}
console.log(limitedTournamentStructure)Union Members
Type Literal
Example:
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'
const limitedTournamentStructure: LimitedTournamentStructure = {
"type": "swiss",
}
console.log(limitedTournamentStructure){ rounds?: number | null; type: "swiss"; }
rounds?
optionalrounds?:number|null
Host round-count override; None uses ceil(log2(players)).
type
type:
"swiss"
Type Literal
Example:
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'
const limitedTournamentStructure: LimitedTournamentStructure = {
"type": "swiss",
}
console.log(limitedTournamentStructure){ cutSize: number; rounds?: number | null; type: "swissTopCut"; }
cutSize
cutSize:
number
Number of players advancing to the elimination bracket (2, 4 or 8).
rounds?
optionalrounds?:number|null
Host Swiss round-count override; None uses ceil(log2(players)).
type
type:
"swissTopCut"
Type Literal
Example:
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'
const limitedTournamentStructure: LimitedTournamentStructure = {
"type": "swiss",
}
console.log(limitedTournamentStructure){ type: "roundRobin"; }
Type Literal
Example:
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'
const limitedTournamentStructure: LimitedTournamentStructure = {
"type": "swiss",
}
console.log(limitedTournamentStructure){ type: "singleElimination"; }
