예제 #1
0
 public void IsColorInCheck(string p_test, string p_fen, bool p_result)
 {
     Position position = new Position(p_fen);
       Debug.Print(p_test + " from FEN " + p_fen + "\n");
       Debug.Print(position.ToString());
       Assert.Equal(position.IsColorInCheck(BitBoard.COLOR_BLACK), p_result);
 }
예제 #2
0
 public void GetLegalMoves(string p_test, string p_fen, int p_expectedCountOfMove)
 {
     Position positionFromFen = new Position(p_fen);
       Debug.Print(p_test + " from FEN " + p_fen + "\n");
       Debug.Print(positionFromFen.ToString());
       MoveList moveList = positionFromFen.GetLegalMoves();
       Debug.Print("MoveList:\n");
       Debug.Print(moveList.ToString());
       Assert.Equal(p_expectedCountOfMove, moveList.CountMoves);
 }
예제 #3
0
 public void PositionFromFen(string p_test, string p_fen)
 {
     Position positionFromFen = new Position(p_fen);
       Debug.Print(p_test + " from FEN " + p_fen + "\n");
       Debug.Print(positionFromFen.ToString());
 }