Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["HeartBreak"]>><<set $stepsNeeded_Array to ["climbUp();", "fix();"]>>
<<set _commandLength = $stepsTaken_Array.length>>\
<<set $Step1Visited = true>>\
<<set _show to { start: 0, end: 6 }>>\
[img[Images\Day13_14\ComboGSDay13BG1.png]]
"PHEW, I'm beat… They don't know when to quit. I'm glad to see ya, kid."
<div class='hide' id='next0'>[img[Images\Day13_14\ComboGSDay13BG2.png]]
"OH, I meant to congratulate you on completing the course the other week. You'll make the varsity sportsball team for sure at this rate."</div>
<div class='hide' id='next1'> "SO... here's uh... a little gift to commemorate this moment!!! Why don't you hang onto this key while I go order a nice team jacket for you??? ...LATER!!!"</div>
<div class='hide' id='next2'> [img[Images\Day13_14\ComboGSDay13BG3.png]]
"HEY"</div>
<div class='hide' id='next3'>[img[Images\Day13_14\ComboGSDay13BG4.png]]
"I'm going to rip that striped hat right off their head..."
</div>
<div class='hide' id='next4'>[img[Images\Day13_14\ComboGSDay13BG5.png]]
"What? You have the key? Why didn't you say anything?!"</div>
<div class='hide' id='next5'>[img[Images\Day13_14\ComboGSDay13BG6.png]]
"Well, at least now I can finish my favourite series. I’ve been waiting for years. Will you do me a favor and open the door to the library?"
[[Sure.|Steps 14 - 17]]
</div>
<<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 - 17][$stepsTaken_Array = []]]
<<else>>\
You scale the ladder, twist out the old lightbulb with a flick of the wrist, and put in the new one.
[[Huh. Looks like Gym's sportsball practice really helped, huh?|Steps 18 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step18Visited == null>>\
<<set $Step18Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();","pickUp();","rep(4) {moveRight();}","putDown(ladder);","climbUp();","fix();"]>>\
[img[Images\Day13_14\ComboGSDay13BG9.png]]
"Thank you. Being able to see everything more clearly definitely made things worse."
<<set _show to { start: 0, end: 2}>>\
<div class='hide' id='next0'>
"What happened to the other ladder? There used to be two in here... You know what? I don't even want to know."</div>
<div class='hide' id='next1'>"Can you <span class='redBold'>fix();</span> the other light? You may have to <span class='whiteBold'>climb down</span> the ladder, <span class='whiteBold'>pick it up</span>, and then <span class='blueBold'>putDown(ladder);</span> against the bookshelf in order to reach it..."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 21][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG9.png]]
"Can you <span class='redBold'>fix();</span> the other light? You may have to <span class='whiteBold'>climb down</span> the ladder, <span class='whiteBold'>pick it up</span>, and then <span class='blueBold'>putDown(ladder);</span> against the bookshelf in order to reach it..."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 21][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 18 - 21][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 18 - 21 Evaluation]]
[[Clear the commands.|Steps 18 - 21][$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 _commandLength = $stepsTaken_Array.length>>\
<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
[img[Images\Day13_14\ComboGSDay13BG7.png]]
"!......!!"
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>[img[Images\Day13_14\ComboGSDay13BG8.png]]
"I knew I shouldn’t have lent out my key. Look at this mess… Can you see the light up there? Try to <span class='blueBold'>climbUp();</span> to <span class='redBold'>fix();</span> the light..."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 17][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG8.png]]
"I knew I shouldn't have lent out my key. Look at this mess… Can you see the light up there? Try to <span class='blueBold'>climbUp();</span> to <span class='redBold'>fix();</span> the light..."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 17][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 14 - 17][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 14 - 17 Evaluation]]
[[Clear the commands.|Steps 14 - 17][$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 18 - 21][$stepsTaken_Array = []]]
<<else>>\
You haul the ladder over on your shoulder, climb up, and switch the lightbulbs in the space of a breath.
[[Yeah, that sportsball stuff *really* paid off.|Steps 22 - 23]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step22Visited == null>>\
<<set $Step22Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();","rep(5) {moveLeft();}","talk();"]>>\
[img[Images\Day13_14\ComboGSDay13BG10.png]]
"Are those spider webs…?! Erh! I... can't deal with that right now. I have an idea, can you <span class='whiteBold'>come down</span> and <span class='blueBold'>talk();</span> to me over here? I have something for you."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 23][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG10.png]]
"Are those spider webs…?! Erh! I... can't deal with that right now. I have an idea, can you <span class='whiteBold'>come down</span> and <span class='blueBold'>talk();</span> to me over here? I have something for you."
<<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>>\
You slide down the ladder and walk over to the cat-eared ghost.
[['Sup?|Steps 24 - 26]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step24Visited == null>>\
<<set $Step24Visited = true>>\
<<set $stepsNeeded_Array to ["rep(5){moveRight();}","pickUp();","rep(4) {moveRight();}","putDown(ladder);","climbUp();"]>>\
[img[Images\Day13_14\ComboGSDay13BG11.png]]
"I have this poster here. Maybe it can liven up the room? Can you just <span class='whiteBold'>move over</span>, <span class='blueBold'>putDown(ladder);</span> , and <span class='whiteBold'>climb up</span> that pillar? Don’t forget to <span class='blueBold'>pickUp();</span> the ladder on your way."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 24 - 26][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG11.png]]
"I have this poster here. Maybe it can liven up the room? Can you just <span class='whiteBold'>move over</span>, <span class='blueBold'>putDown(ladder);</span> , and <span class='whiteBold'>climb up</span> that pillar? Don’t forget to <span class='blueBold'>pickUp();</span> the ladder on your way."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 24 - 26][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 24 - 26][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 24 - 26 Evaluation]]
[[Clear the commands.|Steps 24 - 26][$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 - 26][$stepsTaken_Array = []]]
<<else>>\
Using your powered up movement, you slide past the the ladder, grabbing it with one hand, then slap it against the pillar and climb up easily.
[[I'm up here. What now?|Steps 27 - 28]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step27Visited == null>>\
<<set $Step27Visited = true>>\
<<set $stepsNeeded_Array to ["fix();"]>>\
[img[Images\Day13_14\ComboGSDay13BG12.png]]
"Use <span class='redBold'>fix();</span> to open it. This code is an example of Procedural Abstraction - it can be used in a bunch of situations because fixing can mean many things. I hope this helps the vibe in here."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 27 - 28 Evaluation][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG12.png]]
"Use <span class='redBold'>fix();</span> to open it. This code is an example of Procedural Abstraction - it can be used in a bunch of situations because fixing can mean many things. I hope this helps the vibe in here."
<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>>\
You slap the poster down and look back at the ghost expectantly.
[[Well? Does it help?|Steps 29 - 34]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step29Visited == null>>\
<<set $Step29Visited = true>>\
<<set $stepsNeeded_Array to ["climbUp();", "fix();"]>>\
[img[Images\Day13_14\ComboGSDay13BG13.png]]
"..."
<<set _show to { start: 0, end: 4 }>>\
<div class='hide' id='next0'>"It doesn’t."</div>
<div class='hide' id='next1'>"Ughhhh can we at least get rid of the webs in here? I kind of hate them. Stay up there, I'll pull you back over here so you can reach them."</div>
<div class='hide' id='next2'>[img[Images\Day13_14\ComboGSDay13BG14.png]]
"Oops... sorry, I think I pulled you over too quickly. That fall must have hurt, are you okay? Sorry to ask... but can you climb up the ladder again and <span class='redBold'>fix();</span> ?"</div>
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 29 - 34][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG14.png]]
"Oops... sorry, I think I pulled you over too quickly. That fall must have hurt, are you okay? Sorry to ask... but can you climb up the ladder again and <span class='redBold'>fix();</span> ?"
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 29 - 34][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 29 - 34][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 29 - 34 Evaluation]]
[[Clear the commands.|Steps 29 - 34][$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>>
<</if>><<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 - 13]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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].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 - 34][$stepsTaken_Array = []]]
<<else>>\
You go back up the ladder and swipe away the cobwebs.
[[At least they don't stick...|Steps 35 - 36]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step35Visited == null>>\
<<set $Step35Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();","pickUp(ladder);","rep(3){moveRight();}","putDown(ladder);","climbUp();","fix();"]>>\
[img[Images\Day13_14\ComboGSDay13BG16.png]]
"How does fix(); apply to spiderwebs? Welp, every time you remove one you fix a piece of my broken heart. Now come down and move the ladder to the middle. Let's clean that up as well."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 35 - 36][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG15.png]]
"How does fix(); apply to spiderwebs? Welp, every time you remove one you fix a piece of my broken heart. Now come down and move the ladder to the middle. Let's clean that up as well."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 35 - 36][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 35 - 36][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 35 - 36 Evaluation]]
[[Clear the commands.|Steps 35 - 36][$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>>
<</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 35 - 36][$stepsTaken_Array = []]]
<<else>>\
You go back up the ladder and swipe away the cobwebs.
[[At least they don't stick...|Steps 37 - 38]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step37Visited == null>>\
<<set $Step37Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();","pickUp(ladder);","rep(3){moveRight();}","putDown(ladder);","climbUp();","fix();"]>>\
[img[Images\Day13_14\ComboGSDay13BG16.png]]
"A lot better. Now do the same to the right."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 37 - 38][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG16.png]]
"A lot better. Now do the same to the right."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 37 - 38][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 37 - 38][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 37 - 38 Evaluation]]
[[Clear the commands.|Steps 37 - 38][$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>>
<</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 37 - 38][$stepsTaken_Array = []]]
<<else>>\
You move the ladder, climb it, and swipe the webs away again.
[[Though wouldn't it be cleaner to do this without using my hand??|Steps 39 - 41]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step39Visited == null>>\
<<set $Step39Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();","pickUp(ladder);","rep(10) {moveLeft();}","putDown(ladder);","climbUp();",]>>\
[img[Images\Day13_14\ComboGSDay13BG17.png]]
"Let's see… the first floor looks pretty okay now. Hmm, the second floor still needs some work."
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>
"Maybe take the ladder, and place it next to the left pillar? Then you should be able to climb up there."</div>
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 39 - 41][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG17.png]]
"Let's see… the first floor looks pretty okay now. Hmm, the second floor still needs some work."
"Maybe take the ladder, and place it next to the left pillar? Then you should be able to climb up there."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 39 - 41][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 39 - 41][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 39 - 41 Evaluation]]
[[Clear the commands.|Steps 39 - 41][$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>>
<</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 39 - 41][$stepsTaken_Array = []]]
<<else>>\
You move the ladder all the way to the other side of the library and go up.
[[All right, I'm up high. What now?|Steps 42 - 44]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step42Visited == null>>\
<<set $Step42Visited = true>>\
<<set $stepsNeeded_Array to ["rep(4){ rep(3){moveRight(); pickUp(spiderweb);} moveRight();}",]>>\
[img[Images\Day13_14\ComboGSDay13BG18.png]]
"Good. Be careful up there! For this part you'll have to find the pattern and clear all the spiderwebs on the green dots. Since there are so many, you should use a repeat loop."
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>
"Actually... why don't you try a Nested Repeat Loop - a repeat loop inside of another repeat loop. Here's a hint: find a pattern for the green dots first, then a pattern for the blue."</div>
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 42 - 44][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day13_14\ComboGSDay13BG18.png]]
"Good. Be careful up there! For this part you'll have to find the pattern and clear all the spiderwebs on the green dots. Since there are so many, you should use a repeat loop."
"Actually... why don't you try a Nested Repeat Loop - a repeat loop inside of another repeat loop. Here's a hint: find a pattern for the green dots first, then a pattern for the blue."
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 42 - 44][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 42 - 44][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 42 - 44 Evaluation]]
[[Clear the commands.|Steps 42 - 44][$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>>
<</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 42 - 44][$stepsTaken_Array = []]]
<<else>>\
You move along the second floor and clear otu the cobwebs without conscious thought.
[[Complicated, but, hey, whatever works!|Steps 45 - 47]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\[img[Images\Day13_14\ComboGSDay13BG19.png]]
"Amazing! Way to use nested loops to take care of the spider nests! I think that's all the cleaning! Let's go back to the dorm."
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>
[img[Images\Day13_14\ComboGSDay13BG20.png]]
"Thank you for doing all the cleaning. I really didn't want to touch those gross webs. Here, have some fruit and have a good rest. See you tomorrow!"
</div>