Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["CrossCourt"]>><<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();"]>>
<<set _show to { start: 0, end: 3 }>>\
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day5\GSDay5BG1.png]]
"You did an amazing job last class. I’m really excited to get the rest of this building fixed up."
<div class='hide' id='next0'>[img[Images\Day5\GSDay5BG2.png]]
"Oh... it looks like all the work you put into fixing up the Gym is waking up the old P.E. teacher..."</div>
<div class='hide' id='next1'>[img[Images\Day5\GSDay5BG3.png]]
"I'm gonna duck out and go work in another room for awhile. Why don't you show them all the hard work you did? I'm sure they'll have more stuff for you to do anyway."</div>
<div class='hide' id='next2'>[img[Images\Day5\GSDay5BG4.png]]
"You'll be in good hands! ...probably."
[[Well ok, bye then.|Steps 9 - 17]]</div>
<</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 9 - 17][$stepsTaken_Array = []]]
<<else>>\
You step to the right.
[[Liked that move, I bet.|Steps 18 - 19]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $Step18Visited == null>>\
<<set $Step18Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();"]>>\
[img[Images\Day5\GSDay5BG9.png]]
"..."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 19 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day5\GSDay5BG9.png]]
"..."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 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 18 - 19][$stepsTaken_Array = []]]
<<else>>\
You step to the right again, trying to impress the ghost.
[[What, still not good enough for you?|Steps 20 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $Step20Visited == null>>\
<<set $Step20Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();"]>>\
[img[Images\Day5\GSDay5BG10.png]]
"ZZZ"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day5\GSDay5BG10.png]]
"ZZZ"
<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 step to the right one more time, putting some OOMPH into it.
[[Try sleeping through that one!|Steps 22 - 26]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<set $stepsNeeded_Array = ["rep(5) {moveRight();}"]>>
<<if $Step22Visited == null>>\
<<set $Step22Visited = true>>\
[img[Images\Day5\GSDay5BG11.png]]
<<set _show to { start: 0, end: 2 }>>\
"STOP!!! If I had my whistle I would be blowing your eardrums out right now. You call that movement?!? Aren't you tired of moving that slow???"
<div class='hide' id='next0'>"LOOK, you can type <span class='blueBold'>moveRight();</span> a bunch of times to get across the room, but that’s slow! And cardio isn’t SLOW!!!! And everyone knows that the cardinal rule of cardio is <span class='whiteBold'>REPETITION!!!!</span></div>
<div class='hide' id='next1'>[img[Images\Day5\GSDay5BG12.png]]
"PRO-TIP, you can use a <span class='whiteBold'>repeat loop</span> to get things done FAST. Try out <span class='redBold'>rep(5) {</span><span class='blueBold'>moveRight();</span><span class='redBold'>}</span> and TYPE IT EXACTLY LIKE THIS!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 26 Evaluation][$stepsTaken_Array.push(_commandString)]]</div>
<<else>>\
[img[Images\Day5\GSDay5BG12.png]]
"PRO-TIP, you can use a <span class='whiteBold'>repeat loop</span> to get things done FAST. Try out <span class='redBold'>rep(5) {</span><span class='blueBold'>moveRight();</span><span class='redBold'>}</span> and TYPE IT EXACTLY LIKE THIS!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 26 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 22 - 26][$stepsTaken_Array = []]]
<<else>>\
It feels like green lightning races through your legs as you take 5 steps to the right in what feels like a near instant.
[[Whoa! Such power...!|Steps 27 - 28]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $Step27Visited == null>>\
<<set $Step27Visited = true>>\
<<set $stepsNeeded_Array to ["rep(15) {moveLeft();}"]>>\
[img[Images\Day5\GSDay5BG13.png]]
"THERE you go!!! Now your code has some Iteration - the process of repeating steps. Now show me some iteration and slide to the left!!! Use <span class='redBold'>rep(15) { }</span> this time!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 27 - 28 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day5\GSDay5BG13.png]]
"THERE you go!!! Now your code has some Iteration - the process of repeating steps. Now show me some iteration and slide to the left!!! Use <span class='redBold'>rep(15) { }</span> this time!!!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 27 - 28 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 27 - 28][$stepsTaken_Array = []]]
<<else>>\
The speed empowers you again as you take 15 steps to the left with a drifting slide that would put a professional racer to shame.
[[Pretty smooth.|Steps 29 - 30]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set $stepsNeeded_Array = ["rep(7) {moveRight();}", "rep(5) {moveDown();}", "rep(8) {moveRight();}", "rep(5) {moveUp();}"]>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step29Visited == null>>\
<<set $Step29Visited = true>>\
[img[Images\Day5\GSDay5BG14.png]]
"CRISS CROSS, CRISS CROSS"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 29 - 30][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day5\GSDay5BG14.png]]
"CRISS CROSS, CRISS CROSS"
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 29 - 30][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 29 - 30][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 29 - 30 Evaluation]]
[[Clear the commands.|Steps 29 - 30][$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 29 - 30][$stepsTaken_Array = []]]
<<else>>\
Your body blurs as you follow the coach-ghost's directions effortlessly.
[[Did you get even faster? Nice.|Steps 31 - 32]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set $stepsNeeded_Array to ["rep(8) {moveLeft();}"]>>\
<<if $Step31Visited == null>>\
<<set $Step31Visited = true>>\
[img[Images\Day5\GSDay5BG15.png]]
"BRING IT BACK NOW Y'ALL"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 31 - 32 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day5\GSDay5BG15.png]]
"BRING IT BACK NOW Y'ALL"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 31 - 32 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 31 - 32][$stepsTaken_Array = []]]
<<else>>\
You take your final 8 steps to the left and strike a fabulous pose with your hand in front of your face.
[[How's that, ghostie?|Steps 33 - 38]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _show to { start: 0, end: 3 }>>\
[img[Images\Day5\GSDay5BG16.png]]
"THREE HOPS THIS TIME"
<div class='hide' id='next0'>[img[Images\Day5\GSDay5BG17.png]]
"...HUH??? You don't know how to jump???"</div>
<div class='hide' id='next1'>"BUMMER... There goes my rhythm. Let's call it a day here."</div>
<div class='hide' id='next2'>[img[Images\Day5\GSDay5BG18.png]]
"WELL WELL WELL... you did a pretty good job loosening up today, but today was just conditioning. Try-outs start tomorrow!!!"
"SEE YA"
</div><<if $Step9Visited == null>>\
<<set $Step9Visited = true>>\
<<set _show to { start: 0, end: 3 }>>\
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day5\GSDay5BG5.png]]
"WHOA!!! I'm awake??? And the gym looks great??? What year is it right now!?!"
<div class='hide' id='next0'>[img[Images\Day5\GSDay5BG6.png]]
"YOU did all that??? Not bad, kid. Ya on a sportsball team yet???"
<div class='hide' id='next1'>[img[Images\Day5\GSDay5BG7.png]]
"OKAY!!! Let's head back on over to the Gym so I can see what else you can do."
<div class='hide' id='next2'>[img[Images\Day5\GSDay5BG8.png]]
"LET'S GET YOU <span class='whiteBold'>MOVING</span>, KID!!! Everyone knows that the best form of exercise is cardio."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 9 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
[img[Images\Day5\GSDay5BG8.png]]
"LET'S GET YOU <span class='whiteBold'>MOVING</span>, KID!!! Everyone knows that the best form of exercise is cardio."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 9 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<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.|Password Screen][$stepsTaken_Array = []]]
<<else>>\
[[Click here to continue.|Steps 1 - 8]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\