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

GetBestAction() public method

public GetBestAction ( Game game ) : ActionType
game Game
return ActionType
        public override ActionType GetBestAction(Game game)
        {
            Console.WriteLine(game.PlayerHandSet.ActiveHand);
            List<ActionEv> actions = Evaluate(game);
            foreach (ActionEv ae in actions)
                Console.WriteLine(ae.Action + " " + ae.Ev);

            foreach (ActionEv ae in actions)
            {
                if (game.IsValidAction(ae.Action))
                    return ae.Action;
                else
                {
                    Console.WriteLine("OMGGG " + ae.Action);
                }
            }
            Console.WriteLine("BIG FUCCCCKKK");

            return ActionType.Split;
        }