I am brand new to coding and loving Swift Playground. When I got to the Nesting Loops level, I did not understand the organization of the correct code.
Here is a link to the correct solution.
My original code had the collectGem and turnLeft commands directly below the while !isOnGem with the !moveForward command at the bottom - it worked until the second gem. I don't understand how the nested loops commands are organized and the hints section did not help. Thanks for any further explanation for this as I'd like to understand nested loops before continuing. I could not find any online info that provided support for this, so if this post should be in another section, please advise.