/**
 * The archaeologist is searching for a specific artifact at an excavation site.
 * The function 'digUpArtifacts' takes the archaeologist's name, the excavation site,
 * and the target artifact as arguments and returns whether the artifact was found or not.
 *
 * @param archaeologistName The name of the archaeologist performing the excavation.
 * @param excavationSite The location of the excavation site.
 * @param targetArtifact The specific artifact the archaeologist is searching for.
 * @return True if the artifact is found, False otherwise.
 */
fun digUpArtifacts(archaeologistName: String, excavationSite: String, targetArtifact: String): Boolean {

    val artifacts = listOf("Pottery shard", "Metal coin", "Stone carving", "Ceramic figurine", "Amber necklace")

    var artifactFound = false
    var artifactIndex = 0

    while (artifactIndex < artifacts.size) {
        if (artifacts[artifactIndex] == targetArtifact) {
            artifactFound = true
            break
        }
        artifactIndex++
    }

    if (artifactFound) {
        println("$archaeologistName found the $targetArtifact at the excavation site.")
    }

    return artifactFound
}
/**
 * The archaeologist is searching for a specific artifact at an excavation site.
 * The function 'digUpArtifacts' takes the archaeologist's name, the excavation site,
 * and the target artifact as arguments and returns whether the artifact was found or not.
 *
 * @param archaeologistName The name of the archaeologist performing the excavation.
 * @param excavationSite The location of the excavation site.
 * @param targetArtifact The specific artifact the archaeologist is searching for.
 * @return True if the artifact is found, False otherwise.
 */
fun digUpArtifacts(archaeologistName: String, excavationSite: String, targetArtifact: String): Boolean {
/**
 * The archaeologist is searching for a specific artifact at an excavation site.
 * The function 'digUpArtifacts' takes the archaeologist's name, the excavation site,
 * and the target artifact as arguments and returns whether the artifact was found or not.
 *
 * @param archaeologistName The name of the archaeologist performing the excavation.
 * @param excavationSite The location of the excavation site.
 * @param targetArtifact The specific artifact the archaeologist is searching for.
 * @return True if the artifact is found, False otherwise.
 */
fun digUpArtifacts(archaeologistName: String, excavationSite: String, targetArtifact: String): Boolean {

    val artifacts = listOf("Pottery shard", "Metal coin", "Stone carving", "Ceramic figurine", "Amber necklace")

    var artifactFound = false
    var artifactIndex = 0

    while (artifactIndex < artifacts.size) {
        if (artifacts[artifactIndex] == targetArtifact) {
            artifactFound = true
            break
        }
        artifactIndex++
    }

    if (artifactFound) {
        println("$archaeologistName found the $targetArtifact at the excavation site.")
    }

    return artifactFound
}