Beispiel #1
0
        public void TestMoveCalculationDepthFirstLevel()
        {
            _AIPlayer.DepthLevel = 1;

            //using only one depth level I expect the black bishop will capture the white knight

            var move = _AIPlayer.CalculateNextMove(_board);

            Assert.IsTrue(move.OldPosition.Row == 2 &&
                          move.OldPosition.Column == 1 &&
                          move.NewPosition.Row == 1 &&
                          move.NewPosition.Column == 0 &&
                          move.Score == -5); //expecting end result 1 Black Bishop 1 White Bishop 1 White Rook (one rook less => -5)
        }