Swift Playgrounds 1

What made this level more challenging was that we had to find the shortest route to toggle the switch and collect the gem. The commands were:

turnLeft()

moveForward()

moveForward()

turnLeft()

moveForward()

moveForward()

moveForward()

moveForward()

moveForward()

toggleSwitch()

moveForward()

moveForward()

moveForward()

moveForward()

collectGem()

 

Leave a Reply