/// <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(); }
/// <summary> /// Deals the next card and assigns it out. /// </summary> /// <returns></returns> private Card NextCard() { return(Deck.DealNextCard()); }