/**
 * This function generates the positions for a given number of enemies in a game.
 *
 * @param numEnemies The number of enemies to generate positions for.
 * @param minPos The minimum position allowed for the enemies.
 * @param maxPos The maximum position allowed for the enemies.
 * @return A list of enemy positions.
 */
fun generateEnemyPositions(numEnemies: Int, minPos: Int, maxPos: Int): List<Int> {

    val enemyPositions = mutableListOf<Int>()

    // Generate random positions for each enemy
    repeat(numEnemies) {
        val position = (minPos..maxPos).random()
        enemyPositions.add(position)
    }

    return enemyPositions
}
/**
 * This function generates the positions for a given number of enemies in a game.
 *
 * @param numEnemies The number of enemies to generate positions for.
 * @param minPos The minimum position allowed for the enemies.
 * @param maxPos The maximum position allowed for the enemies.
 * @return A list of enemy positions.
 */
fun generateEnemyPositions(numEnemies: Int, minPos: Int, maxPos: Int): List<Int> {
/**
 * This function generates the positions for a given number of enemies in a game.
 *
 * @param numEnemies The number of enemies to generate positions for.
 * @param minPos The minimum position allowed for the enemies.
 * @param maxPos The maximum position allowed for the enemies.
 * @return A list of enemy positions.
 */
fun generateEnemyPositions(numEnemies: Int, minPos: Int, maxPos: Int): List<Int> {

    val enemyPositions = mutableListOf<Int>()

    // Generate random positions for each enemy
    repeat(numEnemies) {
        val position = (minPos..maxPos).random()
        enemyPositions.add(position)
    }

    return enemyPositions
}