/**
 * Calculates the final score of a game for a specific player.
 *
 * @param player_name The name of the player.
 * @param kills The number of kills for the player.
 * @param deaths The number of deaths for the player.
 * @param assists The number of assists for the player.
 * @param objectives The number of objectives completed by the player.
 * @return The final score of the player in the game.
 * @throws IllegalArgumentException If any of the input values are negative.
 *
 * Example:
 * calculateGameScore("John", 10, 5, 8, 2) // Output: "John - Final Score: 27"
 */
fun calculateGameScore(playerName: String, kills: Int, deaths: Int, assists: Int, objectives: Int): String {

    if (listOf(kills, deaths, assists, objectives).any { it < 0 }) {
        throw IllegalArgumentException("Negative values are not allowed")
    }

    val score = kills * 3 - deaths * 2 + assists + objectives * 5

    return "$playerName - Final Score: $score"
}
/**
 * Calculates the final score of a game for a specific player.
 *
 * @param player_name The name of the player.
 * @param kills The number of kills for the player.
 * @param deaths The number of deaths for the player.
 * @param assists The number of assists for the player.
 * @param objectives The number of objectives completed by the player.
 * @return The final score of the player in the game.
 * @throws IllegalArgumentException If any of the input values are negative.
 *
 * Example:
 * calculateGameScore("John", 10, 5, 8, 2) // Output: "John - Final Score: 27"
 */
fun calculateGameScore(playerName: String, kills: Int, deaths: Int, assists: Int, objectives: Int): String {
/**
 * Calculates the final score of a game for a specific player.
 *
 * @param player_name The name of the player.
 * @param kills The number of kills for the player.
 * @param deaths The number of deaths for the player.
 * @param assists The number of assists for the player.
 * @param objectives The number of objectives completed by the player.
 * @return The final score of the player in the game.
 * @throws IllegalArgumentException If any of the input values are negative.
 *
 * Example:
 * calculateGameScore("John", 10, 5, 8, 2) // Output: "John - Final Score: 27"
 */
fun calculateGameScore(playerName: String, kills: Int, deaths: Int, assists: Int, objectives: Int): String {

    if (listOf(kills, deaths, assists, objectives).any { it < 0 }) {
        throw IllegalArgumentException("Negative values are not allowed")
    }

    val score = kills * 3 - deaths * 2 + assists + objectives * 5

    return "$playerName - Final Score: $score"
}