/**
 * This function takes in the enemy type and number of enemies to create a list of enemy names.
 *
 * @param enemyType The type of enemy to create.
 * @param numEnemies The number of enemies to create.
 * @return List of enemy names.
 */
fun createEnemyList(enemyType: String, numEnemies: Int): List<String> {

    val enemyList = mutableListOf<String>()

    // Create a list with initial elements based on enemy type
    enemyList.addAll(when (enemyType) {
        "zombie" -> (1..numEnemies).map { "zombie$it" }
        "skeleton" -> (1..numEnemies).map { "skeleton$it" }
        "orc" -> (1..numEnemies).map { "orc$it" }
        else -> (1..numEnemies).map { "unknown$it" }
    })

    return enemyList
}
/**
 * This function takes in the enemy type and number of enemies to create a list of enemy names.
 *
 * @param enemyType The type of enemy to create.
 * @param numEnemies The number of enemies to create.
 * @return List of enemy names.
 */
fun createEnemyList(enemyType: String, numEnemies: Int): List<String> {
/**
 * This function takes in the enemy type and number of enemies to create a list of enemy names.
 *
 * @param enemyType The type of enemy to create.
 * @param numEnemies The number of enemies to create.
 * @return List of enemy names.
 */
fun createEnemyList(enemyType: String, numEnemies: Int): List<String> {

    val enemyList = mutableListOf<String>()

    // Create a list with initial elements based on enemy type
    enemyList.addAll(when (enemyType) {
        "zombie" -> (1..numEnemies).map { "zombie$it" }
        "skeleton" -> (1..numEnemies).map { "skeleton$it" }
        "orc" -> (1..numEnemies).map { "orc$it" }
        else -> (1..numEnemies).map { "unknown$it" }
    })

    return enemyList
}