Type Definitions
-
RoundConfig
-
The configuration object for a round in a game.
Properties:
Name Type Description isFinished
boolean Returns
true
if the round is finished.isTurnClockwise
boolean Returns
true
if the direction of play is in clockwise direction.players
Object.<string, boolean> Array of players' name in the current round.
turn
number Returns the index of player in the game in the current turn.
drawPile
Array.<Card> Array of Cards in the draw pile.
discardPile
Array.<Card> Array of Cards in the discard pile.
playersCards
Array.<Array.<Card>> Array of player's cards.
mustCallsUno
number | null The index of the player who must calls 'UNO' because they have only one card remaining on their hands.
winners
Array.<string> Indexes of players whose already wins the game.