I am trying to complete the "Initializing Your Expert" lesson in the Swift Playground. Below I post just a snippet of the code that I wrote, since no matter how many lines of code I write, the turnLock() method has no effect whatsoever.
let expert = Expert()
/*Create a function that will move the Expert character forward
the specified number of tiles. This will make the program easier to code and less verbose.
*/
func moveExpert(tiles: Int) {
for tile in 1...tiles {
expert.moveForward()
}
}
/*Create a function to make the Expert do an about face, i.e.
orient itself in the opposite direction.
*/
func aboutFace() {
expert.turnRight()
expert.turnRight()
}
expert.turnLockUp()
The instructions give no information about this method, such as when or where it can and cannot be called. It states merely that calling it is supposed to "reveal the path between the platforms." I don't see multiple platforms in the 3D puzzle world, just one platform with different levels.
No "path between platforms" is ever shown when I call this method, regardless of the location of the Expert character. Why doesn't this method ever do anything at all?
Can anyone advise?
Thank you kindly.
Topic:
Developer Tools & Services
SubTopic:
Swift Playground