Level 10 - Munchkin Dodging Finale
Objective
Dodge the munchkins to get to the KringleCon entrance.
Hints
You want to move once each munchkin is the furthest grid coordinates aways on the x axis (which will be 6
for each munchkin). Use while loops and implement a conditional check using the elf.position["x"]
and munchkin.position["x"]
values to check how far away the munchkin is before using moveTo
to the next lollipops position. When using while loops, use a small delay of time.sleep(0.05)
to ensure the browser does not lock up.
These munchkins are under strict orders to never be friendly! I have to sneak past them as they move back and forth.
Original code:
1 2 3 4 5 6 7 8 9 |
|
Solution:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
ELVES RULE MUNCHKINS DROOL