A player which does some simple card counting and modifies the Wizard of Odds simple strategy slightly depending on the number of fives that have been seen.
Inheritance: WizardSimpleStrategy
Beispiel #1
0
        static void Main(string[] args)
        {
            BlackjackSettings settings = LoadSettingsFromFile("settings.xml");
            BlackjackGame game = new BlackjackGame(settings);

            var handsToPlay = 100000000L;

            //BasicStrategyPlayer basic = new BasicStrategyPlayer(handsToPlay);
            //var table = ActionTable.FromStrategy(basic);

            //var player = basic;
            //var player = new ConsoleBlackjackPlayer() { Game = game };
            //var player = new WizardSimpleStrategy(handsToPlay);
            //var player = new ActionTablePlayer(table, handsToPlay) { Print = true };
            var player = new SimpleFiveCountPlayer(handsToPlay);

            game.Play(new [] { player });
            Console.WriteLine("Profit: {0:N2}%",
            player.Profit / settings.MinimumBet / (decimal)handsToPlay * 100m);
        }