/**
 * This function takes a start level and end level as input parameters and generates a list of game levels.
 *
 * Each level is represented by an integer. The function will generate a range of levels starting from the start level
 * up to the end level - 1.
 *
 * The break statement will be used to stop the generation of levels if a level divisible by 9 is encountered.
 *
 * @param startLevel The starting level.
 * @param endLevel The ending level.
 * @return A list of game levels.
 *
 * Example:
 * Input:
 * startLevel = 1
 * endLevel = 30
 *
 * Output:
 * [1, 2, 3, 4, 5, 6, 7, 8]
 */
fun createGameLevels(startLevel: Int, endLevel: Int): List<Int> {

    val gameLevels = mutableListOf<Int>()
    for (level in startLevel until endLevel) {
        if (level % 9 == 0) {
            break
        }
        gameLevels.add(level)
    }
    return gameLevels
}
/**
 * This function takes a start level and end level as input parameters and generates a list of game levels.
 *
 * Each level is represented by an integer. The function will generate a range of levels starting from the start level
 * up to the end level - 1.
 *
 * The break statement will be used to stop the generation of levels if a level divisible by 9 is encountered.
 *
 * @param startLevel The starting level.
 * @param endLevel The ending level.
 * @return A list of game levels.
 *
 * Example:
 * Input:
 * startLevel = 1
 * endLevel = 30
 *
 * Output:
 * [1, 2, 3, 4, 5, 6, 7, 8]
 */
fun createGameLevels(startLevel: Int, endLevel: Int): List<Int> {
/**
 * This function takes a start level and end level as input parameters and generates a list of game levels.
 *
 * Each level is represented by an integer. The function will generate a range of levels starting from the start level
 * up to the end level - 1.
 *
 * The break statement will be used to stop the generation of levels if a level divisible by 9 is encountered.
 *
 * @param startLevel The starting level.
 * @param endLevel The ending level.
 * @return A list of game levels.
 *
 * Example:
 * Input:
 * startLevel = 1
 * endLevel = 30
 *
 * Output:
 * [1, 2, 3, 4, 5, 6, 7, 8]
 */
fun createGameLevels(startLevel: Int, endLevel: Int): List<Int> {

    val gameLevels = mutableListOf<Int>()
    for (level in startLevel until endLevel) {
        if (level % 9 == 0) {
            break
        }
        gameLevels.add(level)
    }
    return gameLevels
}