/**
 * This exercise requires finding a specific artifact at multiple dig sites.
 * The archaeologist will continue searching each dig site until the artifact is found.
 * Complete the code to help the archaeologist locate the artifact.
 *
 * @param archaeologistName The name of the archaeologist.
 * @param digSites A list of dig sites where the artifact might be located.
 * @return A message indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, digSites: List<String>): String {

    println("Welcome, $archaeologistName! Let's begin the search for the artifact.")

    for (digSite in digSites) {
        println("Searching dig site $digSite...")

        var found = false
        var excavationDepth = 0
        while (!found) {
            excavationDepth++
            println("Digging deeper at $digSite - Depth: $excavationDepth")

            if (excavationDepth == 10) {
                println("Oops, this dig site seems to be a dead end. Moving to the next site.")
                break
            } else if (excavationDepth == 50) {
                println("Artifact not found at dig site $digSite.")
                break
            } else {
                // Add more conditions or actions here to find the artifact
            }
        }
    }

    return "Search completed. Artifact status unknown."
}
/**
 * This exercise requires finding a specific artifact at multiple dig sites.
 * The archaeologist will continue searching each dig site until the artifact is found.
 * Complete the code to help the archaeologist locate the artifact.
 *
 * @param archaeologistName The name of the archaeologist.
 * @param digSites A list of dig sites where the artifact might be located.
 * @return A message indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, digSites: List<String>): String {
/**
 * This exercise requires finding a specific artifact at multiple dig sites.
 * The archaeologist will continue searching each dig site until the artifact is found.
 * Complete the code to help the archaeologist locate the artifact.
 *
 * @param archaeologistName The name of the archaeologist.
 * @param digSites A list of dig sites where the artifact might be located.
 * @return A message indicating whether the artifact was found or not.
 */
fun findArtifact(archaeologistName: String, digSites: List<String>): String {

    println("Welcome, $archaeologistName! Let's begin the search for the artifact.")

    for (digSite in digSites) {
        println("Searching dig site $digSite...")

        var found = false
        var excavationDepth = 0
        while (!found) {
            excavationDepth++
            println("Digging deeper at $digSite - Depth: $excavationDepth")

            if (excavationDepth == 10) {
                println("Oops, this dig site seems to be a dead end. Moving to the next site.")
                break
            } else if (excavationDepth == 50) {
                println("Artifact not found at dig site $digSite.")
                break
            } else {
                // Add more conditions or actions here to find the artifact
            }
        }
    }

    return "Search completed. Artifact status unknown."
}