Blackjack.Players.CountingSystemBasicStrategyPlayer.HandOver C# (CSharp) Method

HandOver() public method

public HandOver ( HandInfo info ) : void
info HandInfo
return void
        public override void HandOver(HandInfo info)
        {
            //Adjust the count based on what was seen this hand.
            foreach (var c in info.DealerHand.Cards)
                if (c.Rank < Ranks.Seven)
                    count++;
                else if (c.Rank > Ranks.Nine)
                    count--;

            foreach (var h in info.PlayerHands)
                foreach (var c in h.Cards)
                    if (c.Rank < Ranks.Seven)
                        count++;
                    else if (c.Rank > Ranks.Nine)
                        count--;

            base.HandOver(info);
        }