tournament-organizer
    Preparing search index...

    Class Match

    Class representing a match.

    See MatchValues for detailed descriptions of properties.

    Index

    Constructors

    • Create a new match.

      Parameters

      • id: string
      • round: number
      • match: number

      Returns Match

    Methods

    • Returns { draw: number; id: string; loss: number; win: number }

      The details for the player who loss the match

      • draw: number

        Number of draws.

      • id: string

        ID for player one (or null if no player assigned).

      • loss: number

        Number of losses for player one.

      • win: number

        Number of wins for player one.

    • Returns { [key: string]: any }

      Any extra information

    • Returns { loss: string; win: string }

      The next match for winners and losers

      • loss: string

        ID of the next match for the loser of the current match (or null if none).

      • win: string

        ID of the next match for the winner of the current match (or null if none).

    • Returns { draw: number; id: string; loss: number; win: number }

      The details for player one

      • draw: number

        Number of draws.

      • id: string

        ID for player one (or null if no player assigned).

      • loss: number

        Number of losses for player one.

      • win: number

        Number of wins for player one.

    • Returns { draw: number; id: string; loss: number; win: number }

      The details for player two

      • draw: number

        Number of draws for player two.

      • id: string

        ID for player two (or null if no player assigned).

      • loss: number

        Number of losses for player two.

      • win: number

        Number of wins for player two.

    • Returns { draw: number; id: string; loss: number; win: number }

      The details for the player who won the match

      • draw: number

        Number of draws.

      • id: string

        ID for player one (or null if no player assigned).

      • loss: number

        Number of losses for player one.

      • win: number

        Number of wins for player one.

    • Returns Boolean

      If the match is paired, either with two players, or one player and marked as a bye or loss