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); }
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); }
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()); }