Round
Represents a round of a game. Most of the player interactions happen in this class.
Member Summary
Public Members | ||
public get |
cardsInDeck: Card[] Gets the cards in the deck, by order. |
|
public get |
cardsOnTable: Card[] Gets the cards shown on the table. |
|
public get |
Gets the seed used for initially shuffling the deck. |
|
public get |
Gets the players in the round. |
Method Summary
Public Methods | ||
public |
Deals a specific amount of cards to a single or multiple players. |
|
public |
drawToTable(amount: number) Draws a specific amount of cards to the table, so every player in the round can see them. |
|
public |
getPlayerById(id: number | string): Player Gets a player in the round by ID. |
Public Members
public get cardsOnTable: Card[] source
Gets the cards shown on the table. These cards can be seen by every player in the round.
Public Methods
public deal(amount: number, players: ...Player) source
Deals a specific amount of cards to a single or multiple players. Once the deck becomes empty, no more cards are dealt.