Ejemplo n.º 1
0
        /// <summary>
        /// Deals one card to each player and then one to the dealer.
        /// This should only be called in the initial card deal.
        /// </summary>
        private void DealCard()
        {
            foreach (Player player in Players)
            {
                if (player.Status != PlayerStatus.NotPlaying)
                {
                    Card card = Deck.DealNextCard();
                    player.Hands.First().Cards.Add(card);
                    UpdateTable(true, true);
                    show.Wait();
                }
            }
            Card dealerCard = Deck.DealNextCard();

            Dealer.Hands.First().Cards.Add(dealerCard);
            UpdateTable(true, true);
            show.Wait();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deals the next card and assigns it out.
 /// </summary>
 /// <returns></returns>
 private Card NextCard()
 {
     return(Deck.DealNextCard());
 }