Roll Left, Roll Right Swift Playgrounds solution

Hi everyone,


Can anyone help with helping me spot where I’m going wrong with my solution.


Byte completes all of the tasks, but just keeps walking around.


I want the loop to end, preferably when Byte is on the final open switch but can’t seem to Figure out how. Here’s a screen grab of my code so far. I’m a newbie to coding so any help is appreciated,


thanks,


RobUser uploaded file

null-OTHER, Swift Playgrounds

Posted on Feb 18, 2018 9:32 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Roll Left, Roll Right Swift Playgrounds solution

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.