Exemple #1
0
        private void GetDotnetAgentMoves()
        {
            if (DotnetAIServiceImpl.ConsoleOutput)
            {
                Console.WriteLine(DotnetAgentName + "'s turn.");
            }

            while (_game.CurrentPlayer.PlayerId == 1 &&
                   _game.State != State.COMPLETE)
            {
                var poGame = CreatePartiallyObservableGame(_game);
                _game.Process(DotnetAgent.GetMove(poGame));
            }

            if (DotnetAIServiceImpl.ConsoleOutput)
            {
                Console.WriteLine("############## State #############");
                Console.WriteLine(SabberHelpers.Printers.PrintGame(_game));
                Console.WriteLine("##################################");
            }
        }