예제 #1
0
        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);
        }
예제 #2
0
        public OptStrategy(int max_bet, double ev_cutoff, double pp_multiplier)
        {
            this.ev_cutoff = ev_cutoff;
            this.max_bet = max_bet;
            this.pp_multiplier = pp_multiplier;

            card_counter = new CardCounter(pp_multiplier);
        }
예제 #3
0
        public OptStrategy(int max_bet, double ev_cutoff, double pp_multiplier)
        {
            this.ev_cutoff     = ev_cutoff;
            this.max_bet       = max_bet;
            this.pp_multiplier = pp_multiplier;

            card_counter = new CardCounter(pp_multiplier);
        }
예제 #4
0
        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);
        }