Learn To Code 2 - Up and Down - code issue

Hi, I'm a beginner on Playgrounds and I don't understand what is wrong with line 04.

I expected to choose which character will perform the maze with right hand strategy but it looks like I failed.

Can someone please explain me where is the mistake?

thanks

while gemCounter < 7 {
    if character.isOnGem {
        gemGem()
    }else if character.!isBlockedRight {
        character.turnRight()
        character.moveForward()
    }else {
        character.moveForward()
    }
}

Not enuf to simply say you failed...state what you did√, what you expected to happen, what really happened, and how those differ.


SeeFor Best Results - Read the Label

Learn To Code 2 - Up and Down - code issue
 
 
Q