예제 #1
0
        public void EvaluateComplexGame()
        {
            var board = EngineTests.GenerateComplexGame();

            var evaluation = BoardEvaluator.Evaluate(board);

            this.TestContext.WriteLine("Evaluation = " +
                                       evaluation.ToString(CultureInfo.CurrentCulture));
            Assert.IsTrue(evaluation < 0);             // -3
        }
예제 #2
0
        public void EvaluateWeakPosition()
        {
            var board = EngineTests.GenerateGameWithPlayerAboutToLose();

            var evaluation = BoardEvaluator.Evaluate(board);

            this.TestContext.WriteLine("Evaluation = " +
                                       evaluation.ToString(CultureInfo.CurrentCulture));
            Assert.IsTrue(evaluation < 0);             // -116
        }