/**
 * Calculate the average score of each player and return the result.
 *
 * @param playerScores A dictionary containing player names as keys and their corresponding scores as values.
 * @return The average score of all the players.
 */
fun getAverage(playerScores: Map<String, Int>): Double {

    var totalScores = 0
    for ((_, score) in playerScores) {
        totalScores += score
    }

    val averageScore = totalScores.toDouble() / playerScores.size
    return averageScore
}
/**
 * Calculate the average score of each player and return the result.
 *
 * @param playerScores A dictionary containing player names as keys and their corresponding scores as values.
 * @return The average score of all the players.
 */
fun getAverage(playerScores: Map<String, Int>): Double {
/**
 * Calculate the average score of each player and return the result.
 *
 * @param playerScores A dictionary containing player names as keys and their corresponding scores as values.
 * @return The average score of all the players.
 */
fun getAverage(playerScores: Map<String, Int>): Double {

    var totalScores = 0
    for ((_, score) in playerScores) {
        totalScores += score
    }

    val averageScore = totalScores.toDouble() / playerScores.size
    return averageScore
}