Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["pickUp(ladder);"]>><<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
[img[Images\Day14\GSDay14BG1.png]]
"Thank you for the help yesterday. I hate to say it, but what’s done is done. I’d like to fix the space. Will you help me?"
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>[img[Images\Day14\GSDay14BG2.png]]
"I knew you would. Let’s practice a little first. Here, take this ladder. This time, use <span class='redBold'>pickUp(ladder);</span> - you’ve done similar things before, right? Putting words inside the () ?"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 4 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day14\GSDay14BG2.png]]
"I knew you would. Let’s practice a little first. Here, take this ladder. This time, use <span class='redBold'>pickUp(ladder);</span> - you’ve done similar things before, right? Putting words inside the () ?"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 4 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 - 4][$stepsTaken_Array = []]]
<<else>>\
You kick the ladder into a sweet spinning flip, then catch it on your shoulder.
[[Got it. Now what?|Steps 5 - 6]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step5Visited == null>>\
<<set $Step5Visited = true>>\
<<set $stepsNeeded_Array = ["rep(4) {moveLeft();}","putDown(ladder);","climbLadder(up);","pickUp(spiderweb);"]>>
[img[Images\Day14\GSDay14BG3.png]]
"Good. Now move to the left, <span class='whiteBold'>put down</span> the ladder, then <span class='whiteBold'>climb up</span> and <span class='redBold'>pickUp(spiderweb);</span> "
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 5 - 6][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day14\GSDay14BG3.png]]
"Good. Now move to the left, <span class='whiteBold'>put down</span> the ladder, then <span class='whiteBold'>climb up</span> and <span class='redBold'>pickUp(spiderweb);</span> "
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 5 - 6][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 5 - 6][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 5 - 6 Evaluation]]
[[Clear the commands.|Steps 5 - 6][$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 5 - 6][$stepsTaken_Array = []]]
<<else>>\
You put down the ladder and do a rapid slide climb up it, then swipe the spiderweb down.
[[Cleaned up!|Steps 7 - 10]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step7Visited == null>>\
<<set $Step7Visited = true>>\
<<set $stepsNeeded_Array = ["climbLadder(up);","pickUp(spiderweb);"]>>
[img[Images\Day14\GSDay14BG4.png]]
"Great! You look ready to clean up the library with me. Let’s go!"
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>[img[Images\Day14\GSDay14BG5.png]]
"Let’s start with the left side. Go <span class='whiteBold'>climb up</span> the ladder and <span class='redBold'>pickUp(spiderweb);</span>"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 10][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day14\GSDay14BG5.png]]
"Let’s start with the left side. Go <span class='whiteBold'>climb up</span> the ladder and <span class='redBold'>pickUp(spiderweb);</span>"
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 10][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 7 - 10][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 7 - 10 Evaluation]]
[[Clear the commands.|Steps 7 - 10][$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 7 - 10][$stepsTaken_Array = []]]
<<else>>\
You go up the ladder and vanish the spiderweb with ease.
[[Fwoosh~|Steps 11 - 12]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step11Visited == null>>\
<<set $Step11Visited = true>>\
<<set $stepsNeeded_Array = ["climbLadder(down);","pickUp(ladder);","rep(3){moveRight();}",
"putDown(ladder);","climbLadder(up);", "pickUp(spiderweb);"]>>
[img[Images\Day14\GSDay14BG6.png]]
"Easy right? 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 11 - 12][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day14\GSDay14BG6.png]]
"Easy right? 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 11 - 12][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 11 - 12][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 11 - 12 Evaluation]]
[[Clear the commands.|Steps 11 - 12][$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 11 - 12][$stepsTaken_Array = []]]
<<else>>\
After putting the ladder down, you flip onto it just long enough to reach the spiderweb and remove it.
[[Swooooosh~|Steps 13 - 14]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step13Visited == null>>\
<<set $Step13Visited = true>>\
<<set $stepsNeeded_Array = ["climbLadder(down);","pickUp(ladder);",
"rep(3){moveRight();}","putDown(ladder);","climbLadder(up);","pickUp(spiderweb);"]>>
[img[Images\Day14\GSDay14BG7.png]]
"A lot better. Now do the same to the right."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 13 - 14][$stepsTaken_Array.push(_commandString)]]
<<else>>\
[img[Images\Day14\GSDay14BG7.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 13 - 14][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 13 - 14][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 13 - 14 Evaluation]]
[[Clear the commands.|Steps 13 - 14][$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 13 - 14][$stepsTaken_Array = []]]
<<else>>\
You come down from the ladder, kickflip it ont your shoulder, and swagger over to the next position before going up and swiping down the other spiderweb.
[[Foooooosh~~|Steps 15 - 17]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step15Visited == null>>\
<<set $Step15Visited = true>>\
<<set $stepsNeeded_Array = ["climbLadder(down);","pickUp(ladder);",
"rep(10) {moveLeft();}","putDown(ladder);","climbLadder(up);"]>>
[img[Images\Day14\GSDay14BG8.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."
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 15 - 17][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day14\GSDay14BG8.png]]
"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 15 - 17][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 15 - 17][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 15 - 17 Evaluation]]
[[Clear the commands.|Steps 15 - 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 15 - 17][$stepsTaken_Array = []]]
<<else>>\
You come down, move the ladder over to the next pillow, and do a perfect climb up to the second level.
[[I can see my house from here! ...nah, maybe that's just a bat.|Steps 18 - 20]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step18Visited == null>>\
<<set $Step18Visited = true>>\
<<set $stepsNeeded_Array = ["rep(17){moveRight(); pickUp(spiderweb);}"]>>
[img[Images\Day14\GSDay14BG9.png]]
"Good. Be careful up there!"
<<set _show to { start: 0, end: 1}>>\
<div class='hide' id='next0'>"Good use of <span class='blueBold'>rep( ) { }</span> so far. For this part, <span class='whiteBold'>pick up spiderwebs after every step you take</span>!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 20 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>\
[img[Images\Day14\GSDay14BG9.png]]
"Good use of <span class='blueBold'>rep( ) { }</span> so far. For this part, <span class='whiteBold'>pick up spiderwebs after every step you take</span>!"
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 20 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 - 20][$stepsTaken_Array = []]]
<<else>>\
You use the green electricity power of the repeat loop to slide across the second floor, grabbing cobwebs with quick jabs of your hands.
[[Easy pickings. Heh...pickings. Get it?|Steps 21 - 24]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\ [img[Images\Day14\GSDay14BG10.png]]
"Amazing. 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\Day14\GSDay14BG11.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!"
----
Good job! This lesson's password is: <span class ='whiteBold'>Opal</span>
Enter it in the Google Forms link!</div>