Talk:Lost Viking/@comment-45460068-20200429112831

slide=10 switch=6 skip=9 sidesteps = 1 steps = 1 X_PACE_LENGTH = 4 Y_PACE_LENGTH = 6 number=1 while steps <= 35: # Take the next step: hero.moveXY(steps * X_PACE_LENGTH, sidesteps * Y_PACE_LENGTH) if steps%switch==0:number*=-1 sidesteps+=number if sidesteps>slide:sidesteps=1 if sidesteps<1:sidesteps=slide # Increment steps and sideSteps as appropriate, taking into account the special rules. if steps%skip==0: sidesteps+=number if sidesteps>slide:number=1 if sidesteps<1:number=slide steps += 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!
 * 1) How many sideSteps north of the Red X you've taken.
 * 1) How many steps east of the Red X you've taken.
 * 1) Multiply this with steps to determine your X coordinate. DON'T CHANGE THIS!
 * 1) Multiply this with sideSteps to determine your Y coordinate. DON'T CHANGE THIS!
 * 1) The maze is 35 steps along the X axis.