Esempio n. 1
0
        public void GenerateMoveForSimpleGame()
        {
            var board = EngineTests.GenerateSimpleGame();

            var engine        = new RandomEngine();
            var generatedMove = engine.GenerateMove(board.Clone());

            this.TestContext.WriteLine(generatedMove.ToString());
            this.TestContext.WriteLine("Evaluations: " +
                                       engine.Evaluations.ToString(CultureInfo.CurrentCulture));
            this.TestContext.WriteLine("Visitations: " +
                                       engine.Visitations.ToString(CultureInfo.CurrentCulture));
            board.MovePiece(generatedMove);
        }