/**
 * This function evaluates the intersection of two rock types based on their complexity.
 * The complexity of rocks can be determined using boolean operations.
 *
 * @param rock1Complexity The complexity level of the first rock.
 * @param rock2Complexity The complexity level of the second rock.
 * @return The intersection of the two rock types based on their complexity. Possible values are:
 *         - "Simple" for rocks with low complexity level
 *         - "Moderate" for rocks with medium complexity level
 *         - "Complex" for rocks with high complexity level
 *         - "Unknown" if complexity level is unknown or out of range (not 1-10)
 */
fun evaluateRockTypes(rock1Complexity: Int, rock2Complexity: Int): String {

    if (rock1Complexity in 1..10 && rock2Complexity in 1..10) {
        if (rock1Complexity < 5 && rock2Complexity < 5) {
            return "Simple"
        } else if (rock1Complexity in 5 until 8 && rock2Complexity in 5 until 8) {
            return "Moderate"
        } else if (rock1Complexity >= 8 && rock2Complexity >= 8) {
            return "Complex"
        }
    }
    return "Unknown"
}
/**
 * This function evaluates the intersection of two rock types based on their complexity.
 * The complexity of rocks can be determined using boolean operations.
 *
 * @param rock1Complexity The complexity level of the first rock.
 * @param rock2Complexity The complexity level of the second rock.
 * @return The intersection of the two rock types based on their complexity. Possible values are:
 *         - "Simple" for rocks with low complexity level
 *         - "Moderate" for rocks with medium complexity level
 *         - "Complex" for rocks with high complexity level
 *         - "Unknown" if complexity level is unknown or out of range (not 1-10)
 */
fun evaluateRockTypes(rock1Complexity: Int, rock2Complexity: Int): String {
/**
 * This function evaluates the intersection of two rock types based on their complexity.
 * The complexity of rocks can be determined using boolean operations.
 *
 * @param rock1Complexity The complexity level of the first rock.
 * @param rock2Complexity The complexity level of the second rock.
 * @return The intersection of the two rock types based on their complexity. Possible values are:
 *         - "Simple" for rocks with low complexity level
 *         - "Moderate" for rocks with medium complexity level
 *         - "Complex" for rocks with high complexity level
 *         - "Unknown" if complexity level is unknown or out of range (not 1-10)
 */
fun evaluateRockTypes(rock1Complexity: Int, rock2Complexity: Int): String {

    if (rock1Complexity in 1..10 && rock2Complexity in 1..10) {
        if (rock1Complexity < 5 && rock2Complexity < 5) {
            return "Simple"
        } else if (rock1Complexity in 5 until 8 && rock2Complexity in 5 until 8) {
            return "Moderate"
        } else if (rock1Complexity >= 8 && rock2Complexity >= 8) {
            return "Complex"
        }
    }
    return "Unknown"
}