Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set $stepsNeeded_Array to ["putDown(book);"]>>\
<<set _show to { start: 0, end: 4 }>>\
“Hey, you. Ahhh, I’m still tired from fixing the Gym floor yesterday! Well...Not like I did anything...But watching you is exhausting!”
[img[Images\Day3\GSDay3BG1.png]]
<div class='hide' id='next0'>“Anyway we’ve still got some more work to do in the Gym. The floor is done, but we really need to change those lights. They’re older than ME.”</div>
<div class='hide' id='next1'>“Before we go though, I’m gonna need to teach you a new trick. Still got that book from yesterday? It’s okay if you don’t see it on you. I’m just going to assume you have it...”</div>
<div class='hide' id='next2'>“Anyway why don’t you try typing <span class='command'>putDown(book);</span> to put it back where you found it? Remember that you need to add information into those () or a command won't work!”</div>
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next3'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 6 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Anyway why don’t you try typing <span class='command'>putDown(book);</span> to put it back where you found it? Remember that you need to add information into those () or a command won't work!”
[img[Images\Day3\GSDay3BG1.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 6 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<</if>>\<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step7Visited == null>>\
<<set $Step7Visited = true>>\
<<set $stepsNeeded_Array to ["putDown(ladder);"]>>\
<<set _show to { start: 0, end: 4}>>\
“Good work! Whenever you put anything in the () you're using Parameters - specific values that your code needs to be given in order to know what to do.”
[img[Images\Day3\GSDay3BG2.png]]
<div class='hide' id='next0'>
"There are different types of parameters, and we call these different types Variables - containers for single pieces of data, like ladders and lightbulbs. Speaking of which, let's use these."
[img[Images\Day3\GSDay3BG3.png]]</div>
<div class='hide' id='next1'>
“Don’t mind me. I just threw you into the screen for a sec. Sometimes it’s easier to learn by doing. So why don’t you change that lightbulb for me while you’re in there?”
[img[Images\Day3\GSDay3BG4.png]]</div>
<div class='hide' id='next2'>“The trick is that you’ll need to put the ladder down so that you can climb up and reach the lights. Go ahead and use <span class ='command'>putDown(ladder);</span> while you're underneath this broken lightbulb.”</div>
<div class='hide' id='next3'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
“The trick is that you’ll need to put the ladder down so that you can climb up and reach the lights. Go ahead and use <span class ='command'>putDown(ladder);</span> while you're underneath this broken lightbulb.”</span>!
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day3\GSDay3BG4.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<</if>>\<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
<<set $stepsNeeded_Array to ["climbUp();"]>>\
<<set _show to { start: 0, end: 1}>>\
“Okay why don’t you type <span class ='command'>climbUp();</span> to use it."
[img[Images\Day3\GSDay3BG5.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Okay why don’t you type <span class ='command'>climbUp();</span> to use it."
[img[Images\Day3\GSDay3BG5.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<</if>>\<<if $step16Visited == null>>\
<<set $step16Visited = true>>\
<<set $stepsNeeded_Array to ["changeLightbulb();"]>>\
<<set _show to { start: 0, end: 1}>>\
"Great, now use <span class ='command'>changeLightbulb();</span> to change it! Try it out.”
[img[Images\Day3\GSDay3BG6.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
"Great, now use <span class ='command'>changeLightbulb();</span> to change it! Try it out.”
[img[Images\Day3\GSDay3BG6.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<</if>>\<<if $step18Visited == null>>\
<<set $step18Visited = true>>\
<<set $stepsNeeded_Array to ["climbDown();"]>>\
<<set _show to { start: 0, end: 1}>>\
“Cool. When you’re done, just type <span class ='command'>climbDown();</span> to safely go down the old, rickety, sort of broken ladder!”
[img[Images\Day3\GSDay3BG7.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 19 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Cool. When you’re done, just type <span class ='command'>climbDown();</span> to safely go down the old, rickety, sort of broken ladder!”
[img[Images\Day3\GSDay3BG7.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 19 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>>\
<</if>>\<<if $step22Visited == null>>\
<<set $step22Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();", "moveRight();", "moveRight();", "pickUp(lightbulbs);"]>>\
<<set _show to { start: 0, end: 1}>>\
“That’s it, you’ve got it. Now, let’s go get those lightbulbs changed!”
[img[Images\Day3\GSDay3BG9.png]]
<div class='hide' id='next0'>“Care to pick up those lightbulbs over there? Remember the <span class='command'>pickUp();</span> command?”
[img[Images\Day3\GSDay3BG10.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 25][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 22 - 25][$stepsTaken_Array = []]]
<</if>>\
</div>
<<else>>
“Care to pick up those lightbulbs over there? Remember the <span class='command'>pickUp();</span> command?”
<<set _commandLength = $stepsTaken_Array.length>>\[img[Images\Day3\GSDay3BG10.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 25][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 22 - 25][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 22 - 25 Evaluation]]
[[Clear the commands.|Steps 22 - 25][$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 $step26Visited == null>>\
<<set $step26Visited = true>>\
“Now go grab the ladder.”
<<set $stepsNeeded_Array to ["moveLeft();", "moveLeft();", "moveLeft();", "moveDown();", "moveLeft();", "moveLeft();", "moveLeft();", "pickUp(ladder);"]>>\
[img[Images\Day3\GSDay3BG11.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 26 - 27][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 26 - 27][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Now go grab the ladder.”
[img[Images\Day3\GSDay3BG11.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 26 - 27][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 26 - 27][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 26 - 27 Evaluation]]
[[Clear the commands.|Steps 26 - 27][$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 $step28Visited == null>>\
<<set $step28Visited = true>>\
<<set $stepsNeeded_Array to ["moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();", "moveDown();", "moveDown();"]>>\
“Nice. Head over to the first lightbulb on the left side of the screen.”
[img[Images\Day3\GSDay3BG12.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 28 - 29][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 28 - 29][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Nice. Head over to the first lightbulb on the left side of the screen.”
[img[Images\Day3\GSDay3BG12.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 28 - 29][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 28 - 29][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 28 - 29 Evaluation]]
[[Clear the commands.|Steps 28 - 29][$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 $step32Visited == null>>\
<<set $step32Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();", "moveRight();", "moveRight();", "moveRight();", "moveRight();", "moveRight();"]>>\
“Awesome. The middle one is next. Head on over there. Don't place the ladder yet, just walk to the green dot.”
[img[Images\Day3\GSDay3BG14.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 32 - 33][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 32 - 33][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Awesome. The middle one is next. Head on over there. Don't place the ladder yet, just walk to the green dot.”
[img[Images\Day3\GSDay3BG14.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 32 - 33][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 32 - 33][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 32 - 33 Evaluation]]
[[Clear the commands.|Steps 32 - 33][$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 _show to { start: 0, end: 2}>>\
[img[Images\Day3\GSDay3BG18.png]]
“That’s it! Incredible! I think you’ve earned a break. Let’s go.”
<div class='hide' id='next0'>
[img[Images\Day3\GSDay3BG19.png]]
“Another day, another improvement to the school. Thanks for your help back there. I would have lent a hand but...ya know.”</div>
<div class='hide' id='next1'>“See you next time!”
</div><<set $name = null>>\
<<set $commandString = null>>\
<<set $stepsTaken_Array to []>>\
<<set $stepsNeeded_Array to ["NailedIt"]>>\<<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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 1 - 6][$stepsTaken_Array = []]]
<<else>>\
You put down the book
[[Done.Now what?|Steps 7 - 13]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 7 - 13][$stepsTaken_Array = []]]
<<else>>\
You put down the ladder.
[[Next.|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] == $stepsNeeded_Array[_i]>>\
<<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 go up the ladder.
[[OK, I'm up here.|Steps 16 - 17]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 16 - 17][$stepsTaken_Array = []]]
<<else>>\
You change out the lightbulbs with quick hands.
[[Next.|Steps 18 - 19]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 18 - 19][$stepsTaken_Array = []]]
<<else>>\
You come down from the ladder.
[[Next.|Steps 20 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 20 - 21][$stepsTaken_Array = []]]
<<else>>\
You fold the ladder and pick it up.
[[Next.|Steps 22 - 25]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 26 - 27][$stepsTaken_Array = []]]
<<else>>\
You walk over to the ladder and grab it.
[[Next.|Steps 28 - 29]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 22 - 25][$stepsTaken_Array = []]]
<<else>>\
You walk over to the lightbulbs and pick them up.
[[Next.|Steps 26 - 27]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $step20Visited == null>>\
<<set $step20Visited = true>>\
<<set $stepsNeeded_Array to ["pickUp(ladder);"]>>\
<<set _show to { start: 0, end: 1}>>\
“Great. Don’t forget to <span class ='command'>pickUp(ladder);</span> your ladder.”
[img[Images\Day3\GSDay3BG8.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Great. Don’t forget to <span class ='command'>pickUp(ladder);</span> your ladder.”
[img[Images\Day3\GSDay3BG8.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 28 - 29][$stepsTaken_Array = []]]
<<else>>\
You're under the broken lightbulb.
[[Next.|Steps 30 - 31]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $step30Visited == null>>\
<<set $step30Visited = true>>\
<<set $stepsNeeded_Array to ["putDown(ladder);", "climbUp();", "changeLightbulb();", "climbDown();", "pickUp(ladder);"]>>\
"Okay great. Now put down the ladder, climb up, and change the lightbulb! Climb down and remember to pick up your ladder when you’re done.”
Hint: You should have five commands, and you don't need to use any move() commands.
[img[Images\Day3\GSDay3BG13.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 30 - 31][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 30 - 31][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
"Okay great. Now put down the ladder, climb up, and change the lightbulb! Climb down and remember to pick up your ladder when you’re done.”
Hint: You should have five commands, and you don't need to use any move() commands.
[img[Images\Day3\GSDay3BG13.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 30 - 31][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 30 - 31][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 30 - 31 Evaluation]]
[[Clear the commands.|Steps 30 - 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] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 30 - 31][$stepsTaken_Array = []]]
<<else>>\
You casually climb the ladder, spin out the old lightbulb, and put the new one in. After that, you slide down in style and fold the ladder up.
[[Next.|Steps 32 - 33]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</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>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 32 - 33][$stepsTaken_Array = []]]
<<else>>\
You're under the second broken lightbulb.
[[Next.|Steps 34 - 35]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $step34Visited == null>>\
<<set $step34Visited = true>>\
“Same drill as before. You know what to do!”
Hint: You should have five commands, and you don't need to use any move() commands.
<<set $stepsNeeded_Array to ["putDown(ladder);", "climbUp();", "changeLightbulb();", "climbDown();", "pickUp(ladder);"]>>\
[img[Images\Day3\GSDay3BG15.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 34 - 35][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 34 - 35][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Same drill as before. You know what to do!”
Hint: You should have five commands, and you don't need to use any move() commands.
[img[Images\Day3\GSDay3BG15.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 34 - 35][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 34 - 35][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 34 - 35 Evaluation]]
[[Clear the commands.|Steps 34 - 35][$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] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 34 - 35][$stepsTaken_Array = []]]
<<else>>\
You casually climb the ladder, spin out the old lightbulb, and toss it up before catching it and putting it away. After you twist the new one in, you climb down and close the ladder.
[[Next.|Steps 36 - 37]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $step36Visited == null>>\
<<set $step36Visited = true>>\
“Okay one more lightbulb to go. You’ve got this.”
<<set $stepsNeeded_Array to ["moveRight();", "moveRight();", "moveRight();", "moveRight();", "moveRight();", "moveRight();", "moveRight();"]>>\
[img[Images\Day3\GSDay3BG16.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 36 - 37][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 36 - 37][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“Okay one more lightbulb to go. You’ve got this.”
[img[Images\Day3\GSDay3BG16.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 36 - 37][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 36 - 37][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 36 - 37 Evaluation]]
[[Clear the commands.|Steps 36 - 37][$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] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 36 - 37][$stepsTaken_Array = []]]
<<else>>\
You're under the last broken lightbulb.
[[Next.|Steps 38 - 39]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\<<if $step38Visited == null>>\
<<set $step38Visited = true>>\
“You’re a pro. Let’s wrap this up. I’m getting kinda sleepy.”
<<set $stepsNeeded_Array to ["putDown(ladder);", "climbUp();", "changeLightbulb();", "climbDown();", "pickUp(ladder);"]>>\
[img[Images\Day3\GSDay3BG17.png]]
Hint: You should have five commands, and you don't need to use any move() commands.
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 38 - 39][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 38 - 39][$stepsTaken_Array = []]]
<</if>>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
“You’re a pro. Let’s wrap this up. I’m getting kinda sleepy.”
[img[Images\Day3\GSDay3BG17.png]]
Hint: You should have five commands, and you don't need to use any move() commands.
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 38 - 39][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 38 - 39][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 38 - 39 Evaluation]]
[[Clear the commands.|Steps 38 - 39][$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] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Looks like you had an error somewhere. Try it again.
[[Go back.|Steps 38 - 39][$stepsTaken_Array = []]]
<<else>>\
You casually climb the ladder, take out the old lightbulb, and spin it on your finger before pocketing it. After you twist the new one in, you climb down and kick the ladder's foot gently, causing it to do a sweet kickflip that closes it shut as you grab it out of the air.
[[Next.|Steps 40 - 43]]
<<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] == $stepsNeeded_Array[_i]>>\
<<if _gotIt == false>>\
<<break>>
<</if>>\
<</for>>\
<<if _gotIt == false>>\
Password was incorrect.
[[Go back.|Password Entry][$stepsTaken_Array = []]]
<<else>>\
[[Click here to continue.|Steps 1 - 6]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\