GR.Gambling.Blackjack.HandSet.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
        public void Reset()
        {
            hands.Clear();
            hands.Add(new Hand());
            active_index = 0;
        }

Usage Example

示例#1
0
        public void StartRound()
        {
            dealer_hand.Reset();
            player_handset.Reset();

            // ask the player how much he wants to bet
            bet = agent.Bet(this);

            // collect initial wager from the player
            player_money -= bet;
            AddPartyPoints(bet);

            split_count = 0;
        }