Skip to content

@my-swu/simulator-client


@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:

ts
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'

const limitedTournamentStructure: LimitedTournamentStructure = {
  "type": "swiss",
}

console.log(limitedTournamentStructure)

Union Members ​

Type Literal ​

Example:

ts
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'

const limitedTournamentStructure: LimitedTournamentStructure = {
  "type": "swiss",
}

console.log(limitedTournamentStructure)

{ rounds?: number | null; type: "swiss"; }

rounds? ​

optional rounds?: number | null

Host round-count override; None uses ceil(log2(players)).

type ​

type: "swiss"


Type Literal ​

Example:

ts
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? ​

optional rounds?: number | null

Host Swiss round-count override; None uses ceil(log2(players)).

type ​

type: "swissTopCut"


Type Literal ​

Example:

ts
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'

const limitedTournamentStructure: LimitedTournamentStructure = {
  "type": "swiss",
}

console.log(limitedTournamentStructure)

{ type: "roundRobin"; }


Type Literal ​

Example:

ts
import type { LimitedTournamentStructure } from '@my-swu/simulator-client'

const limitedTournamentStructure: LimitedTournamentStructure = {
  "type": "swiss",
}

console.log(limitedTournamentStructure)

{ type: "singleElimination"; }

Released under the MIT License.