Example #1
0
        public static bool TakeInsurance(Game game)
        {
            int[] shoe = game.Shoe.Counts;
            shoe[game.DealerHand[1].PointValue - 1]++;

            double insurance_ev = Eval.InsuranceEv(game.Bet, shoe);

            if (insurance_ev >= 0.0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }