Level connection: https://codecombat.163.com/play/level/one-wrong-step
Free Trial: https://codecombat.163.com/play
Mines, precious stones, bear! Walking in the forest, at the foot note.
Brief introduction
In fact, you can also modify the code! Fate can not just controlled by the sample code.
hero.moveXY (26, 43) # in front of danger! Here replace the coordinates, to move into a gem.
The default code
# Hero totally confused!
# Correct their path, do not let them go on landmines
hero.moveXY(26, 43)
hero.moveXY(6, 15)
hero.moveXY(61, 22)
hero.moveXY(57, 66)
Overview
Through the forest, collecting gems along the way!
Be careful! The default code is written ogre, he wants you to step on mines!
Let the hero move to change the coordinate every gem there.
You have to get clearance to each gem!
Step wrong solution
# Hero totally confused!
# Correct their path, do not let them go on landmines
hero.moveXY(11, 35)
hero.moveXY(35, 24)
hero.moveXY(40, 55)
hero.moveXY(77, 57)
Raiders made in the official teaching Wars geeks column, the original address is: