Esempio n. 1
0
        public void drawDealerHand()
        {
            int x = 0;
            int y = 1;

            // if dealer card is face up, calculate dealer score
            if (faceUp)
            {
                dealerHitStay();
                Console.WriteLine("Dealers's Hand. Score: {0}", dealerScore);
            }

            else
            {
                Console.WriteLine("Dealers's Hand");
            }

            for (int i = 0; i < dNumCards; i++)
            {
                if (i == 0 && !faceUp)
                {
                    DrawCards.DrawCardBorder(x, y, faceUp);
                }
                else
                {
                    DrawCards.DrawCardBorder(x, y, true); // Card always face up
                    DrawCards.DrawCardSuitValue(dealerHand[i], x, y);
                }
                x++;
            }
        }
Esempio n. 2
0
        public void drawPlayerHand()
        {
            // Set cursor for player
            int x = 0;
            int y = 12;

            Console.SetCursorPosition(x, y - 1);
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Your Hand. Score: {0}", pScore);
            for (int i = 0; i < pNumCards; i++)
            {
                DrawCards.DrawCardBorder(x, y, true); // card always face up
                DrawCards.DrawCardSuitValue(playerHand[i], x, y);
                x++;
            }
        }