Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["RepeatAfterMe"]>>\<<set $stepsNeeded_Array to ["jumpLeft();"]>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set _show to { start: 0, end: 3 }>>\
[img[Images\Day6\GSDay6BG1.png]]
"ZZZ"
<div class='hide' id='next0'>[img[Images\Day6\GSDay6BG2.png]]
"WHOA!!! Look who came back!!! I was just practicing my morning workout routine.</div>
<div class='hide' id='next1'>[img[Images\Day6\GSDay6BG3.png]]
"SO are you ready to get that human heart pumping?!?</div>
<div class='hide' id='next2'>[img[Images\Day6\GSDay6BG4.png]]
"OKAY, JUMP!!! This is just like <span class='blueBold'>moveLeft();</span> except we're going to jump over an object! Try <span class='redBold'>jumpLeft();</span> !!!
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 9 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
[img[Images\Day6\GSDay6BG4.png]]
"OKAY, JUMP!!! This is just like <span class='blueBold'>moveLeft();</span> except we're going to jump over an object! Try <span class='redBold'>jumpLeft();</span> !!!
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 9 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 1 - 9][$stepsTaken_Array = []]]
<<else>>\
You jump to the left.
[[Not a Mario jump but you gotta start somewhere....|Steps 10 - 11]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["jumpRight();"]>>\
<<if $Step10Visited == null>>\
<<set $Step10Visited = true>>\
[img[Images\Day6\GSDay6BG5.png]]
"JUMP RIGHT"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 10 - 11 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day6\GSDay6BG5.png]]
"JUMP RIGHT"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 10 - 11 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["jumpUp();"]>>\
<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
[img[Images\Day6\GSDay6BG7.png]]
"AND UP"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
[img[Images\Day6\GSDay6BG7.png]]
"AND UP"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 10 - 11][$stepsTaken_Array = []]]
<<else>>\
You jump to the right with a little more height and power.
[[Feelin' the burn....|Steps 12 - 13]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["jumpDown();"]>>\
<<if $Step12Visited == null>>\
<<set $Step12Visited = true>>\
[img[Images\Day6\GSDay6BG6.png]]
"NOW DOWN"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 12 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
[img[Images\Day6\GSDay6BG6.png]]
"NOW DOWN"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 12 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 12 - 13][$stepsTaken_Array = []]]
<<else>>\
You jump down and land with a slight spin.
[[Like a leaf on the wind.|Steps 14 - 15]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 14 - 15][$stepsTaken_Array = []]]
<<else>>\
You jump up, this time spinning as you take to the air.
[[Watch how I soar.|Steps 16 - 19]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["jumpLeft();"]>>\
<<if $Step16Visited == null>>\
<<set $Step16Visited = true>>\
<<set _show to { start: 0, end: 1 }>>\
[img[Images\Day6\GSDay6BG8.png]]
"NICE, I think you're ready. Let's go!!!"
<div class='hide' id='next0'>[img[Images\Day6\GSDay6BG9.png]]
"SO you can jump over some lines, but can you handle a moderate-sized pile of books???
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 19 Evaluation][$stepsTaken_Array.push(_commandString)]]</div>\
<<else>>\
[img[Images\Day6\GSDay6BG9.png]]
"SO you can jump over some lines, but can you handle a moderate-sized pile of books???
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 19 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 16 - 19][$stepsTaken_Array = []]]
<<else>>\
You do a sideways somersault over the books.
[[Look at this sweet hangtime.|Steps 20 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["jumpRight();"]>>\
<<if $Step20Visited == null>>\
<<set $Step20Visited = true>>\
[img[Images\Day6\GSDay6BG10.png]]
"NOT BAD... but can you handle another!?!
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day6\GSDay6BG10.png]]
"NOT BAD... but can you handle another!?!
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 20 - 21][$stepsTaken_Array = []]]
<<else>>\
You sideways somersault over the books again, this time mimicking the ghost's bored face as you do.
[[Another one.|Steps 22 - 23]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set $stepsNeeded_Array = ["rep(4) {moveDown();}", "rep(4) {moveRight();}", "jumpRight();"]>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step22Visited == null>>\
<<set $Step22Visited = true>>\
[img[Images\Day6\GSDay6BG11.png]]
"WHAT ABOUT THIS??? You better get a <span class='whiteBold'>running jump</span>!!! And you KNOW I want to see you using those <span class='whiteBold'>repeat loops</span>!!! Remember to use <span class='redBold'>rep( ) { }</span> !!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 23][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day6\GSDay6BG11.png]]
"WHAT ABOUT THIS??? You better get a <span class='whiteBold'>running jump</span>!!! And you KNOW I want to see you using those <span class='whiteBold'>repeat loops</span>!!! Remember to use <span class='redBold'>rep( ) { }</span> !!!"
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 23][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 22 - 23][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 22 - 23 Evaluation]]
[[Clear the commands.|Steps 22 - 23][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength > 0>>\
Current commands:
<<for _i to 0; _i < _commandLength; _i ++>>\
<<if $stepsTaken_Array[_i] != "" && $stepsTaken_Array[_i] != " ">>\
<<print $stepsTaken_Array[_i]>>
<<else>>\
Blank Command
<</if>>\
<</for>>
<</if>>
<</if>><<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 22 - 23][$stepsTaken_Array = []]]
<<else>>\
The green lightning supercharges your steps as you hustle to the target and leap over with a double corkscrew spin.
[[You stick the landing, too. Pretty sweet.|Steps 24 - 31]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set $stepsNeeded_Array = ["rep(4) {moveLeft();}", "jumpLeft();"]>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step24Visited == null>>\
<<set $Step24Visited = true>>\
<<set _show to { start: 0, end: 3 }>>\
[img[Images\Day6\GSDay6BG12.png]]
"ALLLLRIGHT!!! Aren't repeat loops so much more Efficient - requiring the least amount of steps and lines of code? I am ALL about efficiency."
<div class='hide' id='next0'>[img[Images\Day6\GSDay6BG13.png]]
"SO!!! This is the big one now!!! You ready??? DOOO IT!!!"</div>
<div class='hide' id='next1'>[img[Images\Day6\GSDay6BG14.png]]
"Too much? Yeah... that's fair. Sometimes when you're faced with a challenge you'll have to use Heuristics - an approach that may not be the best or the prettiest, but gets the job done."</div>
<div class='hide' id='next2'>[img[Images\Day6\GSDay6BG15.png]]
"LIKE PARKOUR!!! NOW <span class='whiteBold'>JUMP OFF THAT CHAIR FOR EXTRA DISTANCE</span>!!! Make sure you do enough <span class='blueBold'>reps</span> to get on the chair before you <span class='redBold'>jumpLeft();</span> !!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 24 - 31][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
[img[Images\Day6\GSDay6BG15.png]]
"LIKE PARKOUR!!! NOW <span class='whiteBold'>JUMP OFF THAT CHAIR FOR EXTRA DISTANCE</span>!!! Make sure you do enough <span class='blueBold'>reps</span> to get on the chair before you <span class='redBold'>jumpLeft();</span> !!!"
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 24 - 31][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 24 - 31][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 24 - 31 Evaluation]]
[[Clear the commands.|Steps 24 - 31][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength > 0>>\
Current commands:
<<for _i to 0; _i < _commandLength; _i ++>>\
<<if $stepsTaken_Array[_i] != "" && $stepsTaken_Array[_i] != " ">>\
<<print $stepsTaken_Array[_i]>>
<<else>>\
Blank Command
<</if>>\
<</for>>
<</if>>
<</if>>\<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i].replace(/\s/g,'') == $stepsNeeded_Array[_i].replace(/\s/g,'')>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 24 - 31][$stepsTaken_Array = []]]
<<else>>\
You follow the path, kickflip off the chair, and somersault forward for a perfect landing.
[[Dang! That's good!|Steps 32 - 40]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _show to { start: 0, end: 5 }>>\
[img[Images\Day6\GSDay6BG16.png]]
"YOU DID IT!!! I honestly didn't think you were going to make it.
<div class='hide' id='next0'>"HEY, have you thought of taking up parkour???"
<div class='hide' id='next1'>"ANYWAY, let's go back to the dorm."
<div class='hide' id='next2'>[img[Images\Day6\GSDay6BG17.png]]
"TRY OUTS ARE OVER!!! Good news kid, you made the cut!!! Be here bright and early tomorrow for practice."
<div class='hide' id='next3'>[img[Images\Day6\GSDay6BG18.png]]
"HEHE... don't worry, I'll start you on the bench..."
<div class='hide' id='next4'>[img[Images\Day6\GSDay6BG19.png]]
"LATER!!!"
</div><label>Enter the password for today's class. <<textbox "_commandString" "">></label>
[[Enter command.|PasswordCheck][$stepsTaken_Array.push(_commandString)]]
<<set _gotIt = true>>\
<<for _i to 0; _i < $stepsTaken_Array.length; _i ++>>\
<<set _gotIt = $stepsTaken_Array[_i] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Password was incorrect.
[[Go back.|PasswordScreen][$stepsTaken_Array = []]]
<<else>>\
[[Click here to continue.|Steps 1 - 9]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\