GR.Gambling.Blackjack.PseudoOptStrategy.Showdown C# (CSharp) Method

Showdown() public method

public Showdown ( Game game ) : void
game Game
return void
        public override void Showdown(Game game)
        {
            // update count
            foreach (Card card in game.DealerHand)
                counts[card.PointValue - 1]++;

            foreach (Hand hand in game.PlayerHandSet)
            {
                if (hand.IsSplit())
                    continue;

                foreach (Card card in hand)
                    counts[card.PointValue - 1]++;
            }

            // reset count when enough cards dealt
            if ((game.Rules.Decks * 52 - game.Shoe.Count) >= 84)
            {
                for (int i = 0; i < 10; i++)
                    counts[i] = 0;
            }
        }