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); }
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); }
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); }