Class representing a tournament manager.

Constructors

Properties

tournaments: Tournament[]

Array of all tournaments being managed.

Methods

  • Create a new tournament.

    Throws an error if ID is specified and already exists.

    Parameters

    • name: string

      Name of the tournament

    • settings: SettableTournamentValues = {}

      Settings of the tournament

    • id: string = undefined

      ID of the tournament (randomly assigned if omitted)

    Returns Tournament

    The newly created tournament

  • Remove a tournament from the manager.

    Throws an error if no tournament has the specified ID.

    Parameters

    • id: string

      ID of the tournament to be removed

    Returns Tournament

    The removed tournament