GR.Gambling.Blackjack.PseudoOptStrategy.Bet C# (CSharp) Method

Bet() public method

public Bet ( Game game ) : int
game Game
return int
        public override int Bet(Game game)
        {
            shell.StandardInput.WriteLine("s");
            for (int i=0; i<9; i++)
                shell.StandardInput.WriteLine(32 - counts[i]);
            shell.StandardInput.WriteLine(128 - counts[9]);

            double shoe_ev = double.Parse(shell.StandardOutput.ReadLine());
            shoe_expectation = shoe_ev;
            Console.WriteLine("shoe ev: " + shoe_ev);

            if (shoe_ev <= 0.0)
                return game.Rules.MinBet;
            else
                return 5000;
        }