/**
 * Calculates the total points of an athlete based on the given criteria.
 *
 * @param points A positive integer representing the initial points of the athlete.
 * @param isWin A boolean value indicating whether the athlete won the game or not.
 * @param isDraw A boolean value indicating whether the game resulted in a draw or not.
 * @return The total points of the athlete after applying the respective rules.
 *
 * Exercise:
 * Complete the code by using the ternary operator and if-else statements to calculate the final points
 * based on the given conditions:
 * - If the athlete won the game, add 3 points to the current points.
 * - If the game resulted in a draw, add 1 point to the current points.
 * - If none of the above conditions are met, return the current points as it is.
 *
 * Difficulty: ★★★★★
 */
fun athletePoints(points: Int, isWin: Boolean, isDraw: Boolean): Int {

    return if (isWin) {
        points + 3
    } else if (isDraw) {
        points + 1
    } else {
        points
    }
}
/**
 * Calculates the total points of an athlete based on the given criteria.
 *
 * @param points A positive integer representing the initial points of the athlete.
 * @param isWin A boolean value indicating whether the athlete won the game or not.
 * @param isDraw A boolean value indicating whether the game resulted in a draw or not.
 * @return The total points of the athlete after applying the respective rules.
 *
 * Exercise:
 * Complete the code by using the ternary operator and if-else statements to calculate the final points
 * based on the given conditions:
 * - If the athlete won the game, add 3 points to the current points.
 * - If the game resulted in a draw, add 1 point to the current points.
 * - If none of the above conditions are met, return the current points as it is.
 *
 * Difficulty: ★★★★★
 */
fun athletePoints(points: Int, isWin: Boolean, isDraw: Boolean): Int {
/**
 * Calculates the total points of an athlete based on the given criteria.
 *
 * @param points A positive integer representing the initial points of the athlete.
 * @param isWin A boolean value indicating whether the athlete won the game or not.
 * @param isDraw A boolean value indicating whether the game resulted in a draw or not.
 * @return The total points of the athlete after applying the respective rules.
 *
 * Exercise:
 * Complete the code by using the ternary operator and if-else statements to calculate the final points
 * based on the given conditions:
 * - If the athlete won the game, add 3 points to the current points.
 * - If the game resulted in a draw, add 1 point to the current points.
 * - If none of the above conditions are met, return the current points as it is.
 *
 * Difficulty: ★★★★★
 */
fun athletePoints(points: Int, isWin: Boolean, isDraw: Boolean): Int {

    return if (isWin) {
        points + 3
    } else if (isDraw) {
        points + 1
    } else {
        points
    }
}