/**
 * This function checks the health of the player and the number of enemies in a game.
 * If the player's health is above 50 and there are more than 5 enemies, it prints 'You are in danger!'
 * If the player's health is below or equal to 50 and there are 5 or fewer enemies, it prints 'You are safe.'
 * Otherwise, if the player's health is below or equal to 50 and there are more than 5 enemies, it prints 'Prepare for battle!'
 */
fun checkEnemies(playerHealth: Int, enemies: List<Any>) {

    if (playerHealth > 50) {
        if (enemies.size > 5) {
            println("You are in danger!")
        } else {
            println("You are safe.")
        }
    } else if (playerHealth <= 50) {
        if (enemies.size <= 5) {
            println("You are safe.")
        } else {
            println("Prepare for battle!")
        }
    }
}
/**
 * This function checks the health of the player and the number of enemies in a game.
 * If the player's health is above 50 and there are more than 5 enemies, it prints 'You are in danger!'
 * If the player's health is below or equal to 50 and there are 5 or fewer enemies, it prints 'You are safe.'
 * Otherwise, if the player's health is below or equal to 50 and there are more than 5 enemies, it prints 'Prepare for battle!'
 */
fun checkEnemies(playerHealth: Int, enemies: List<Any>) {
/**
 * This function checks the health of the player and the number of enemies in a game.
 * If the player's health is above 50 and there are more than 5 enemies, it prints 'You are in danger!'
 * If the player's health is below or equal to 50 and there are 5 or fewer enemies, it prints 'You are safe.'
 * Otherwise, if the player's health is below or equal to 50 and there are more than 5 enemies, it prints 'Prepare for battle!'
 */
fun checkEnemies(playerHealth: Int, enemies: List<Any>) {

    if (playerHealth > 50) {
        if (enemies.size > 5) {
            println("You are in danger!")
        } else {
            println("You are safe.")
        }
    } else if (playerHealth <= 50) {
        if (enemies.size <= 5) {
            println("You are safe.")
        } else {
            println("Prepare for battle!")
        }
    }
}