Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["JumpOnIt"]>><<set $stepsNeeded_Array to ["rep(3) {moveRight(); jumpRight();}"]>>
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set _show to { start: 0, end: 3 }>>\
[img[Images\Day7\GSDay7BG1.png]]
"LOOK who's here... you're late newbie."
<div class='hide' id='next0'>[img[Images\Day7\GSDay7BG2.png]]
"WARM UP TIME!!! Today you'll tackle some Problems - tasks looking for a solution that may or may not use algorithms."</div>
<div class='hide' id='next1'>"OKAY, I want to see you <span class='whiteBold'>jump</span> over these lines all in one go!!! Come on, this is a Decidable Problem - you can absolutely solve this quickly with an algorithm."</div>
<div class='hide' id='next2'>"PRO-TIP, you can do more than one action in a <span class='redBold'>rep( ) { }</span> !!! Try <span class='whiteBold'>repeating</span> <span class='blueBold'>moveRight();</span> and <span class='blueBold'>jumpRight();</span> over these lines."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 7 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day7\GSDay7BG2.png]]
"OKAY, I want to see you <span class='whiteBold'>jump</span> over these lines all in one go!!! Come on, this is a Decidable Problem - you can absolutely solve this quickly with an algorithm."
"PRO-TIP, you can do more than one action in a <span class='redBold'>rep( ) { }</span> !!! Try <span class='whiteBold'>repeating</span> <span class='blueBold'>moveRight();</span> and <span class='blueBold'>jumpRight();</span> over these lines."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 7 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 - 7][$stepsTaken_Array = []]]
<<else>>\
Your feet seem to have springs in them as you bound across the lines with nimble jumps.
[[Got more hops than a jackrabbit!|Steps 8 - 11]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array to ["rep(3) {jumpLeft();}"]>>
<<if $Step8Visited == null>>\
<<set $Step8Visited = true>>\
<<set _show to { start: 0, end: 2 }>>\
[img[Images\Day7\GSDay7BG3.png]]
"STOP. Good warm up. Let's go do some drills."
<div class='hide' id='next0'>[img[Images\Day7\GSDay7BG4.png]]
"WARM UP TIME!!!"</div>
<div class='hide' id='next1'>"<span class='whiteBold'>THREE REPS</span>!!! There are no benchwarmers on my team!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 8 - 11 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day7\GSDay7BG4.png]]
"<span class='whiteBold'>THREE REPS</span>!!! There are no benchwarmers on my team!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 8 - 11 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 8 - 11][$stepsTaken_Array = []]]
<<else>>\
You hop, skip, and do a spinning somersault.
[[Now *that's* a Mario jump!|Steps 12 - 13]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array to ["rep(4) {moveRight(); jumpRight();}"]>>
<<if $Step12Visited == null>>\
<<set $Step12Visited = true>>\
[img[Images\Day7\GSDay7BG5.png]]
"<span class='whiteBold'>FOUR REPS</span>. Find the pattern, look carefully!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 12 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day7\GSDay7BG5.png]]
"<span class='whiteBold'>FOUR REPS</span>. Find the pattern, look carefully!!!"
<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 hop, skip, and do a spinning somersault.
[[Now *that's* a Mario jump!|Steps 14 - 15]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array to ["rep(2) {moveLeft(); moveLeft(); jumpDown(); moveLeft(); moveLeft(); jumpLeft();}"]>>
<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
[img[Images\Day7\GSDay7BG6.png]]
"<span class='whiteBold'>TWO REPS</span>. Go Go Go!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day7\GSDay7BG6.png]]
"<span class='whiteBold'>TWO REPS</span>. Go Go Go!!!"
<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 14 - 15][$stepsTaken_Array = []]]
<<else>>\
Your toes barely touch the ground as you hop across the gym floor.
[[Footloose, footloose.|Steps 16 - 17]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array to ["rep(3) {jumpUp(); jumpRight(); jumpDown(); jumpRight();}"]>>\
<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
[img[Images\Day7\GSDay7BG7.png]]
"LAST ONE. Find the pattern and do as many <span class='whiteBold'>reps</span> as you need!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day7\GSDay7BG7.png]]
"LAST ONE. Find the pattern and do as many <span class='whiteBold'>reps</span> as you need!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 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 - 17][$stepsTaken_Array = []]]
<<else>>\
The green lightning flares once again to supercharge your reps.
[[Jump around now. Jump up, jump up, to get down.|Steps 18 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _show to { start: 0, end: 2 }>>\
"STOP!!! Take five to do some stretches. Meet me back at the dorm."
<div class='hide' id='next0'>[img[Images\Day7\GSDay7BG9.png]]
"FANTASTIC job today kid. Don't get too comfortable yet though. That was just practice."</div>
<div class='hide' id='next1'>"THE REAL THING starts tomorrow. Get your rest and be back here on time!!!"
</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 - 7]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\