Beispiel #1
0
 private void launchAgent()
 {
     if (_isMulliganDone && _activePlayer == ActivePlayer.Player && _isMulliganDone)
     {
         _messenger.Reset();
         _messenger.Add("AI in progress ...");
         STC.Game          STCGame = _game.Clone(false, true, new STC.RandomController());
         List <PlayerTask> tasks   = _agent.PlayTurn(STCGame, STCGame.Player1);
         _messenger.Reset();
         tasks.ForEach(task =>
         {
             _messenger.Add(task.FullPrint());
         });
     }
 }
            public POGame(SabberStoneCore.Model.Game game, bool debug)
            {
                this.origGame     = game;
                this.game         = game.Clone();
                game.Player1.Game = game;
                game.Player2.Game = game;
                prepareOpponent();
                this.debug = debug;

                if (debug)
                {
                    Console.WriteLine("Game Board");
                    Console.WriteLine(game.FullPrint());
                }
            }