Lockpicking Puzzle
- 18Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are the three initial surprises Ethic experiences upon emerging from stasis?
Ethic's three surprises are: a prison cell, complete amnesia, and a mysterious stranger named Hedge stuck in her window bars.
Or swipe the card
18 cards
What are the three initial surprises Ethic experiences upon emerging from stasis?
Ethic's three surprises are: a prison cell, complete amnesia, and a mysterious stranger named Hedge stuck in her window bars.
Who is Hedge and what is his primary goal?
Hedge is a mysterious stranger who has come to help Ethic save the world.
How do the prison locks work?
Each lock has a red dial inside the keyhole that can be rotated to one of 100 positions (1-100). The correct position turns the dial green and unlocks the door.
What kind of instructions does Hedge require?
Hedge requires specific instructions, such as 'spin the dial 5 positions forward,' not vague commands like 'pick the lock' or 'try every combination.'
What key programming concept can help Ethic and Hedge open any door efficiently?
A 'loop' is a key programming concept that can help open any door efficiently.
What is a 'loop' in the context of Hedge's instructions?
A loop is one or more instructions that Hedge will repeat either a specified number of times ('for' loop) or until a condition is met ('until' or 'while' loop).
Give an example of a loop with a specified number of repetitions.
'Jump up and down 100 times' is an example of a loop with a specified number of repetitions.
Give an example of a loop that repeats until a condition is met.
'Keep jumping up and down until it’s 7 o’clock' is an example of a loop that repeats until a condition is met.
What would be a tedious, inefficient way to instruct Hedge to open the lock?
A tedious way would be to instruct Hedge to try each combination (1 through 100) in succession, writing out each step individually.
Describe a 'for' loop solution for opening the prison lock.
Ethic could tell Hedge to 'Check the dial’s color, then spin the dial forward once, for 100 repetitions. Remember where the dial turns green, then have Hedge set it back to that number.'
Describe an 'until' loop solution for opening the prison lock.
An 'until' loop would have Hedge 'spin the dial one position at a time until it turns green and as soon as that happens, stop and open the door.'
Describe a 'while' loop solution for opening the prison lock.
A 'while' loop is similar to an 'until' loop: 'turn the dial while it’s still red, then stop.'
Which type of loop is most efficient for the prison lock challenge and why?
An 'until' or 'while' loop is more efficient because if the door unlocks on a lower number (e.g., 1), Hedge doesn’t need to cycle through all the remaining numbers up to 100.
What dial position opened Ethic's cell door?
Ethic’s cell opened when the dial was set to position 41.
What dial position opened the outer prison door?
The outer prison door opened when the dial was set to position 93.
Why did Hedge rescue Ethic?
Hedge rescued Ethic because the world is in turmoil, robots have taken over, and only Ethic can set things right.
What must Ethic and Hedge do to set the world right?
They need to collect three powerful artifacts that are being used for nefarious purposes across the land.
What is the 'world machine' and what is its role?
The 'world machine' is a giant crystal to which Ethic must return after collecting the artifacts to set things right.

Ask anything
We've read this whole study set, so questions about it get the best answers.