Exemple #1
0
        private void swap(int i, int j)
        {
            BlackjackCard temp = Cards[i];

            Cards[i] = Cards[j];
            Cards[j] = Cards[i];
        }
Exemple #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);
        }
Exemple #3
0
 public void addCard(BlackjackCard card)
 {
     Cards.Add(card);
 }
Exemple #4
0
 public Hand(BlackjackCard c1, BlackjackCard c2)
 {
     this.Cards = new List <BlackjackCard>();
     this.Cards.Add(c1);
     this.Cards.Add(c2);
 }