GR.Gambling.Blackjack.GameLogger.Insurance C# (CSharp) Method

Insurance() public method

public Insurance ( bool take ) : void
take bool
return void
        public void Insurance(bool take)
        {
            take_insurance = take;
        }

Usage Example

        public override bool TakeInsurance(CardSet seen_cards)
        {
            Shoe tmp_shoe = shoe.Copy();

            tmp_shoe.Remove(seen_cards);

            double insurance_ev = Eval.InsuranceEv(current_bet, tmp_shoe.ToArray());

            if (insurance_ev >= 0.0)
            {
                game_logger.Insurance(true);
                insurance_taken = true;
                return(true);
            }

            return(false);
        }