Exemple #1
0
        internal Card TakeCard()
        {
            {
                int  index = RandomInt.RandInt(this.Length);
                Card card  = this.deck[index];

                this.deck.RemoveAt(index);
                this.Length--;

                return(card);
            }
        }
Exemple #2
0
        internal Card TakeCard()
        {
            int index = RandomInt.RandInt(this.Length);

            Card card = this.shoe[index].TakeCard();

            this.numOfCards--;

            if (this.shoe[index].Length == 0)
            {
                this.shoe.RemoveAt(index);
                this.Length--;
            }

            return(card);
        }