Function isRoundCompleted

  • Checks if a round is completed based on its matches.

    Parameters

    • roundMatches: Match[]

      Matches of the round.

    Returns boolean

    Deprecated

    This is both functionally and semantically incorrect because:

    1. A match could be completed because of BYEs.
    2. You could totally give a list of matches from different rounds to this function, and it wouldn't complain although the result will not tell you whether a round is completed.

    Please do something like matches.every(m => isMatchCompleted(m)) instead.

Generated using TypeDoc