Level 7 - Up Down Loopiness
Objective
Navigate through the obstacles and collect the lollipop before arriving at the KringleCon entrance.
Hints
Using a for
loop can reduce how many lines and/or object function calls are used. This link on for
loops may be helpful.
Using elf.moveLeft(40)
will move your elf as far as possible before hitting an obstacle or the end of the screen. Use however large a number you think you need!
No levers, just restrictive as to how much code you can enter.
Solution
1 2 3 4 5 6 7 8 9 10 |
|