コード例 #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);
        }