public void CalculateOpeningMove() { ChessEngine2 chessEngine2 = new ChessEngine2(); chessEngine2.New(); Move move = chessEngine2.CalculateMove(); Assert.IsNotNull(move); }
public void CalculateOpeningMoveBlack() { ChessEngine2 chessEngine2 = new ChessEngine2(); chessEngine2.New(); chessEngine2.ExecuteMove(new Move("E2", "E4", chessEngine2["E2"], MoveType.PawnDoubleStep)); Move move = chessEngine2.CalculateMove(); Assert.IsNotNull(move); }
public void CheckStartBoardRating() { ChessEngine2 chessEngine2 = new ChessEngine2(); chessEngine2.New(); foreach (Color color in ChessEngineConstants.BothColors) { BoardRating boardRating = chessEngine2.GetRating(color); Assert.IsTrue(boardRating.Situation == Situation.Normal); Assert.IsTrue(boardRating.Evaluation == Evaluation.Normal); Assert.AreEqual(boardRating.Weight, 0); } }