Пример #1
0
        public void Hit(Deck deck)
        {
            Console.Write($"{this.Name} hits. ");
            Utility.Sleep();

            // Take a card from the deck and put into player's Hand.
            //Card card = new Card(Suit.Hearts, Face.Ace); //deck.DrawCard();
            Card card = deck.DrawCard(this);

            // If there is any Ace in the Hand, change all the Ace's value to 1.
            // if (this.GetHandValue() + card.Value > 21 && card.Face == Face.Ace)
            //     card.Value = 1;

            //Hand.Add(card); // Background
            card.PrintCardColor(); // UI
            Utility.Sleep();
        }