Hiyve Components - v1.0.0
    Preparing search index...

    Function answerRound

    • The deck with one of its rounds answered — any round, for a board where every card is open at once. A right answer settles the round. A wrong one settles it too — unless keepOpenWhenWrong, when it is counted as a try and the round stays open for another go. A round already settled, or one the deck does not have, is left as it is.

      Parameters

      • state: DeckState
      • roundIndex: number
      • answer: GameAnswer
      • elapsedMs: number | null = null
      • keepOpenWhenWrong: boolean = false

      Returns DeckState