Clear() public method

public Clear ( ) : void
return void
Example #1
0
 public void Reset()
 {
     doubled     = false;
     split       = false;
     stood       = false;
     surrendered = false;
     from_aces   = false;
     hit_count   = 0;
     cards.Clear();
 }
Example #2
0
        public void ResetShoe()
        {
            shoe.Clear();

            int decks = rules.Decks;

            for (int i = 0; i < decks; i++)
            {
                shoe.Add(CardsFactory.StandardDeck);
            }

            shoe.Shuffle(random);

            agent.ResetShoe(this);
        }