Lost Viking

Part A
Super Hard Optional Challenge

Locate the Lost Viking's treasure, hidden in a deadly maze! If you're new to programming, come back to this one later.

Level design by Viking Code School.

Part B
I think those Burls are watching you.

Holy moly macaroni, that was a hard level you just beat! If you aren't already a software developer, you should be. You just got fast-tracked for acceptance with Viking Code School, where you can take your skills to the next level and become a professional web developer in 14 weeks.

Python
"A strategy by Anaphalis:" # Take the next step:   hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH) # Increment steps and sideSteps as appropriate, taking into account the special rules. steps += 1   if steps <= 6:        sideSteps += 1    if steps > 6 and steps <= 11:        sideSteps -= 1    if steps == 12:        sideSteps += 5    if steps == 14:        sideSteps -= 4    if steps > 15 and steps <= 18:        sideSteps += 1    if steps > 18 and steps <= 21:        sideSteps -= 1    if steps > 22 and steps <= 23:        sideSteps += 3    if steps > 33 and steps <= 34:        sideSteps += 1
 * 1) You MUST click on the HELP button to see a detailed description of this level!
 * 2) The raven will tell you what to use for your maze parameters!
 * 3) How many sideSteps north of the Red X you've taken. sideSteps = 1
 * 4) How many steps east of the Red X you've taken. steps = 1
 * 5) Multiply this with steps to determine your X coordinate. DON'T CHANGE THIS! X_PACE_LENGTH = 4
 * 6) Multiply this with sideSteps to determine your Y coordinate. DON'T CHANGE THIS! Y_PACE_LENGTH = 6
 * 7) The maze is 35 steps along the X axis. while steps <= 35:

JavaScript
"A strategy by Anaphalis:" // You MUST click on the HELP button to see a detailed description of this level! // The raven will tell you what to use for your maze parameters! // How many sideSteps north of the Red X you've taken. var sideSteps = 1; // How many steps east of the Red X you've taken. var steps = 1; // Multiply this with steps to determine your X coordinate. DON'T CHANGE THIS! var X_PACE_LENGTH = 4; // Multiply this with sideSteps to determine your Y coordinate. DON'T CHANGE THIS! var Y_PACE_LENGTH = 6; // The maze is 35 steps along the X axis. while(steps <= 35) { // Take the next step:     hero.moveXY(steps * X_PACE_LENGTH, sideSteps * Y_PACE_LENGTH); // Increment steps and sideSteps as appropriate, taking into account the special rules. steps++;     if (steps <= 6) {        sideSteps++;     }     if (steps > 6 && steps <= 11) {         sideSteps--;     }     if (steps == 12) {         sideSteps += 5;     }     if (steps == 14) {         sideSteps -= 4;     }     if (steps > 15 && steps <= 18) {         sideSteps++;     }     if (steps > 18 && steps <= 21) {         sideSteps--;     }     if (steps > 22 && steps <= 23) {         sideSteps += 3;     }     if (steps > 33 && steps <= 34) {         sideSteps++;     } }