Exemplo n.º 1
0
        private void Dealer17()
        {
            if (!DealerHand.Where(dc => dc.Value == 11).Any())
            {
                return;
            }
            var c = DealCard();

            DealerHand.Add(c);
            DisplayCard(dealersCards, c);
            dealerShown += c.Value;

            if (dealerShown > 21)
            {
                DealerHand.Where(dc => dc.Value == 11).First().Value = 1;
                dealerShown -= 10;
                UpdateDealerShown();
                Thread.Sleep(1000);
            }
        }