Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as unsolved with 11 replies, 0 views
Replied In
Roll right roll left swift playgrounds
this is what I got so far, ignore abovewhile !isOnClosedSwitch { while isBlockedLeft || isBlockedRight { moveForward() if isBlocked && isBlockedRight { turnLeft() } if isBlocked && isBlockedLeft { turnRight() } if isBlocked && !isBlockedRight { turnLeft() } while isOnGem { collectGem() } while isOnClosedSwitch { toggleSwitch() } }