Level 3
Level 3 - Don't Get Yeeted!
Objective
Move the elf to collect the lollipops and get to the KringleCon entrance.
Hint
You can walk past the Yeeter once you complete lever0
's task and lever0.pull(modified_data)
in the desired way to disable to Yeeter trap. Click on the lever 0 object in the CURRENT LEVEL OBJECTS panel for more information.
The code I started with:
1 2 3 |
|
This lever has an objective:
Lever objective
Add 2 to the returned int
value of running the function lever0.data()
.
For example, if you wanted to multiply the value by 3 and store to a variable, you could do:
sum = lever0.data() * 3
Then submit the sum using:
lever0.pull(sum)
Note
If you submit a correct answer to lever.pull(answer)
, then the lever and its corresponding trap will be disabled.
In order to run lever.pull(answer)
with lever (#0), you must be standing in its grid square located at (x:6,y:12).
This particular lever object can be saved to a variable named lever using lever = levers.get(0)
Solution
1 2 3 4 5 6 7 |
|