Ejemplo n.º 1
0
 /// <summary>
 /// Shows the hand.
 /// </summary>
 /// <returns>Cards in the players hand.</returns>
 public IEnumerable<Card> ShowHand()
 {
     Card[] cards = new Card[_hand.Count];
     _hand.CopyTo(cards, 0);
     return cards;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the community card.
 /// </summary>
 /// <param name="card">The card.</param>
 public void AddCommunityCard(Card card)
 {
     _communityCards.Enqueue(card);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Receives the card and places it in the hand.
 /// </summary>
 /// <param name="card">The card.</param>
 public void ReceiveCard(Card card)
 {
     _hand.Push(card);
 }