private static MyPoint2D GetBestCurrentPointUsingTournament() { MyPoint2D bestCurrentGenPoint = new MyPoint2D(); foreach (MyPoint2D point in GetRandomPointsToTournament()) { if (bestCurrentGenPoint.GetFunctionValue() < point.GetFunctionValue()) { bestCurrentGenPoint = point; } } return(bestCurrentGenPoint); }