Beispiel #1
0
 private void MoveCardsToShuffler()
 {
     while (Cards.Count > 0)
     {
         Shuffler.Add(Cards[0]);
         Cards.RemoveAt(0);
     }
 }
Beispiel #2
0
        //Get the next card from the shoe
        public BlackjackCard dealCard()
        {
            if (Cards.Count == 0)
            {
                createShoe();
            }
            BlackjackCard returnCard = Cards[0];

            Cards.RemoveAt(0);
            return(returnCard);
        }
Beispiel #3
0
        public ICard Draw()
        {
            if (Cards.Count == 0)
            {
                throw new Exception();
            }

            ICard card = Cards[0];

            Cards.RemoveAt(0);
            Shuffler.Add(card);

            return(card);
        }