public Fitness CalculateFitness(Chessboard chessboard) { if (chessboard != null) { Fitness fitness = new Fitness(chessboard.GetConflictsCount()); return(fitness); } return(WorstFitness); }