GR.Gambling.Blackjack.BasicStrategy.Bet C# (CSharp) Method

Bet() public method

public Bet ( Game game ) : int
game Game
return int
        public override int Bet(Game game)
        {
            // unseen tells how many cards still to come before shuffle
            //int unseen = 84 - (game.Rules.Decks * 52 - game.Shoe.Count);
            //int true_count = (int)Math.Round(((double)running_count / (double)unseen));

            if (card_counter.CurrentEV > ev_cutoff)
            {
                if (betting_system != null)
                {
                    return betting_system.BetSize(card_counter.CurrentEV, current_roll);
                }

                return max_bet;
            }
            else
                return game.Rules.MinBet;
        }