Type Definitions
-
RoundConfig
-
The configuration object for a round in a game.
Properties:
Name Type Description isFinishedboolean Returns
trueif the round is finished.isTurnClockwiseboolean Returns
trueif the direction of play is in clockwise direction.playersObject.<string, boolean> Array of players' name in the current round.
turnnumber Returns the index of player in the game in the current turn.
drawPileArray.<Card> Array of Cards in the draw pile.
discardPileArray.<Card> Array of Cards in the discard pile.
playersCardsArray.<Array.<Card>> Array of player's cards.
mustCallsUnonumber | null The index of the player who must calls 'UNO' because they have only one card remaining on their hands.
winnersArray.<string> Indexes of players whose already wins the game.