/**
 * This function checks for collision between the game player and an enemy.
 *
 * @param enemyX The x-coordinate of the enemy.
 * @param enemyY The y-coordinate of the enemy.
 * @param playerX The x-coordinate of the player.
 * @param playerY The y-coordinate of the player.
 * @return The collision result, either 'Collision occurred!' or 'No collision!'.
 */
fun checkCollision(enemyX: Int, enemyY: Int, playerX: Int, playerY: Int): String {

    // Complete the code to check for collision using XOR operator and conditional statements
    return if ((enemyX - playerX) xor (enemyY - playerY) != 0) {
        "Collision occurred!"
    } else {
        "No collision!"
    }
}
/**
 * This function checks for collision between the game player and an enemy.
 *
 * @param enemyX The x-coordinate of the enemy.
 * @param enemyY The y-coordinate of the enemy.
 * @param playerX The x-coordinate of the player.
 * @param playerY The y-coordinate of the player.
 * @return The collision result, either 'Collision occurred!' or 'No collision!'.
 */
fun checkCollision(enemyX: Int, enemyY: Int, playerX: Int, playerY: Int): String {
/**
 * This function checks for collision between the game player and an enemy.
 *
 * @param enemyX The x-coordinate of the enemy.
 * @param enemyY The y-coordinate of the enemy.
 * @param playerX The x-coordinate of the player.
 * @param playerY The y-coordinate of the player.
 * @return The collision result, either 'Collision occurred!' or 'No collision!'.
 */
fun checkCollision(enemyX: Int, enemyY: Int, playerX: Int, playerY: Int): String {

    // Complete the code to check for collision using XOR operator and conditional statements
    return if ((enemyX - playerX) xor (enemyY - playerY) != 0) {
        "Collision occurred!"
    } else {
        "No collision!"
    }
}