Initializing Your Expert: turnLockUp() Doesn't Work

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.

Answered by Adiv_Abramson in 859136022

I finally discovered why I couldn't get the turnLockUp() method to work. I didn't know what the "lock" looked like or where on the platform to find it. It is on the forward edge of the platform. The Expert must be moved to the tile before the lock - which is just some amorphous blob on the screen that doesn't resemble a lock in any way - and then the turnLockUp() method invoked.

Once that's done, nothing dramatic happens. You have to look on the right side of the platform, where the final gem is located. A small, white disk rises slowly up to the main level of the platform. Now it is possible to move the Expert to the tile over which the last gem is positioned.

This was an extremely frustrating experience. The developers of the Swift Playground would do well to review the instructions in this lesson. Maybe indicate what a "lock" looks like and where it is located, perhaps?

Accepted Answer

I finally discovered why I couldn't get the turnLockUp() method to work. I didn't know what the "lock" looked like or where on the platform to find it. It is on the forward edge of the platform. The Expert must be moved to the tile before the lock - which is just some amorphous blob on the screen that doesn't resemble a lock in any way - and then the turnLockUp() method invoked.

Once that's done, nothing dramatic happens. You have to look on the right side of the platform, where the final gem is located. A small, white disk rises slowly up to the main level of the platform. Now it is possible to move the Expert to the tile over which the last gem is positioned.

This was an extremely frustrating experience. The developers of the Swift Playground would do well to review the instructions in this lesson. Maybe indicate what a "lock" looks like and where it is located, perhaps?

Initializing Your Expert: turnLockUp() Doesn't Work
 
 
Q