Esempio n. 1
0
        public BlackjackCard Hit()
        {
            BlackjackCard card = cards[0];

            cards.Remove(card);

            return(card);
        }
Esempio n. 2
0
        public void ShuffleDeck()
        {
            Random random = new Random();

            int count = cards.Count;

            while (count > 1)
            {
                count--;
                int           i    = random.Next(count + 1);
                BlackjackCard card = cards[i];
                cards[i]     = cards[count];
                cards[count] = card;
            }
        }