Is this for loop introductions? It seemed a little too easy… I just needed to copy the purple text to win. No thought required.
If the goal is to teach loop syntax would it better to have the starting code be this:
# To add code to a loop add 4 spaces in front it after writing loop.
# This code will endlessly move right because the other methods aren't in the loop.
# To win, add 4 spaces to the other methods to put them in the loop.
loop:
self.moveRight()
self.moveUp()
self.moveLeft()
self.moveDown()
A lot of my students forget to maintain the spacing inside loops.
We try to avoid too much equipment forcing/restricting since we want users to be able to come back and try it with different gear.
It can be beaten with moveDirection, moveXY, or move().
We’ve changed the default code to have while loops instead (thanks for the heads up).
it can also be done with speed ring + speedy heroes if you get an item that allows you to wait. There are usually quite a few solutions to most levels.