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

BasicStrategy() public method

public BasicStrategy ( int max_bet, double ev_cutoff, double pp_multiplier ) : System
max_bet int
ev_cutoff double
pp_multiplier double
return System
        public BasicStrategy(int max_bet, double ev_cutoff, double pp_multiplier)
        {
            ProcessStartInfo info = new ProcessStartInfo();
            info.FileName = "bjtest.exe";
            info.UseShellExecute = false;
            info.RedirectStandardError = true;
            info.RedirectStandardInput = true;
            info.RedirectStandardOutput = true;

            shell = Process.Start(info);

            // wait until it says "enter"
            string line = shell.StandardOutput.ReadLine();
            if (line.StartsWith("ready"))
                Console.WriteLine("evaluator ready");

            this.ev_cutoff = ev_cutoff;
            this.max_bet = max_bet;
            this.pp_multiplier = pp_multiplier;

            card_counter = new CardCounter(pp_multiplier);
        }

Same methods

BasicStrategy::BasicStrategy ( int max_bet, double ev_cutoff, double pp_multiplier, BettingSystem betting_system ) : System