Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<if $step8Visited == null>>\
<<set $step8Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();","moveRight();","pickUp(tools);"]>>\
“Next, since we’re going to be fixing the Gym you’re going to need to know how to repair things. We’ll start with the floor today. Why don’t you head over and pick up the hammer and nails? One <span class='command'>pickUp(tools);</span> command will get everything you're standing on!”
[img[Images\Day2\GSDay2BG3wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 8 - 10][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 8 - 10][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 8 - 10 Evaluation]]
[[Clear the commands.|Steps 8 - 10][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength > 0>>\
Current commands:
<<for _i to 0; _i < _commandLength; _i ++>>\
<<print $stepsTaken_Array[_i]>>
<</for>>
<</if>>
<<else>>\
“Next, since we’re going to be fixing the Gym you’re going to need to know how to repair things. We’ll start with the floor today. Why don’t you head over and pick up the hammer and nails? One <span class='command'>pickUp();</span> command will get everything you're standing on!”
[img[Images\Day2\GSDay2BG3wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 8 - 10][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 8 - 10][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 8 - 10 Evaluation]]
[[Clear the commands.|Steps 8 - 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 $name = null>>\
<<set $commandString = null>>\
<<set $stepsTaken_Array to []>>\
<<set $stepsNeeded_Array to ["SpringCleaning"]>>\<<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 8 - 10][$stepsTaken_Array = []]]
<<else>>\
You pick up the hammer and nails.
[[Got them. What now?|Steps 11 - 12]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $step11Visited == null>>\
<<set $step11Visited = true>>\
<<set $stepsNeeded_Array = ["moveRight();", "moveRight();", "pickUp(woodenPlanks);"]>>\
“Wonderful. Make sure not to hurt yourself with those nails. See if you can carry those wooden planks as well.”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day2\GSDay2BG4wdot.png]]
<<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 ++>>\
<<print $stepsTaken_Array[_i]>>
<</for>>
<</if>>
<<else>>\
“Wonderful. Make sure not to hurt yourself with those nails. See if you can carry those wooden planks as well.”
[img[Images\Day2\GSDay2BG4wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<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] == $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 11 - 12][$stepsTaken_Array = []]]
<<else>>\
You grab the wooden planks.
[[OK, what now?|Steps 13 - 14]]
<<set $stepsNeeded_Array = []>>\
<<set $stepsTaken_Array = []>>\
<</if>><<if $step13Visited == null>>\
<<set $step13Visited = true>>\
<<set $stepsNeeded_Array = ["moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();", "fixFloor();"]>>\
“Now we’re talking. Since you have everything, why don’t you move near that hole over on the left side of the screen? You can use <span class='command'>fixFloor();</span> to repair that section.”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day2\GSDay2BG5wdot.png]]
<<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 ++>>\
<<print $stepsTaken_Array[_i]>>
<</for>>
<</if>>
<<else>>\
“Now we’re talking. Since you have everything, why don’t you move near that hole over on the left side of the screen? You can use <span class='command'>fixFloor();</span> to repair that section.”
[img[Images\Day2\GSDay2BG5wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<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] == $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 13 - 14][$stepsTaken_Array = []]]
<<else>>\
You patch the first hole.
<<set $stepsNeeded_Array = []>>\
<<set $stepsTaken_Array = []>>\
[[OK, what now?|Steps 15 - 16]]
<</if>><<if $step15Visited == null>>\
<<set $step15Visited = true>>\
<<set $stepsNeeded_Array = ["moveDown();", "moveDown();", "moveDown();", "fixFloor();"]>>\
“Not bad, not bad! Isn't fixFloor(); powerful? With just one line you were able to use the planks, hammer, and nails all at once! Now go try tackling the hole on the bottom left next.”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day2\GSDay2BG6wdot.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 15 - 16][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 15 - 16][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 15 - 16 Evaluation]]
[[Clear the commands.|Steps 15 - 16][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength > 0>>\
Current commands:
<<for _i to 0; _i < _commandLength; _i ++>>\
<<print $stepsTaken_Array[_i]>>
<</for>>
<</if>>
<<else>>
“Not bad, not bad! Isn't fixFloor(); powerful? With just one line you were able to use the planks, hammer, and nails all at once! Now go try tackling the hole on the bottom left next.”
[img[Images\Day2\GSDay2BG6wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 15 - 16][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 15 - 16][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 15 - 16 Evaluation]]
[[Clear the commands.|Steps 15 - 16][$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 15 - 16][$stepsTaken_Array = []]]
<<else>>\
You patch the second hole.
<<set $stepsNeeded_Array = []>>\
<<set $stepsTaken_Array = []>>\
[[OK, what now?|Steps 17 - 18]]
<</if>><<if $step17Visited == null>>\
<<set $step17Visited = true>>\
<<set $stepsNeeded_Array = ["moveRight();","moveRight();", "moveRight();", "moveRight();", "moveRight();", "fixFloor();"]>>\
“Half the Gym looks great! Using fixFloor(); is an example of abstraction - grouping the complex steps into one line of code. Let's keep it going. How about the hole on the bottom right?”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day2\GSDay2BG7wdot.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 17 - 18][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 17 - 18][$stepsTaken_Array = []]]
<</if>>\
<<else>>
“Half the Gym looks great! Using fixFloor(); is an example of abstraction - grouping the complex steps into one line of code. Let's keep it going. How about the hole on the bottom right?”
[img[Images\Day2\GSDay2BG7wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 17 - 18][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 17 - 18][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 17 - 18 Evaluation]]
[[Clear the commands.|Steps 17 - 18][$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 17 - 18][$stepsTaken_Array = []]]
<<else>>\
You patch the third hole.
<<set $stepsNeeded_Array = []>>\
<<set $stepsTaken_Array = []>>\
[[OK, what now?|Steps 19 - 20]]
<</if>><<if $step19Visited == null>>\
<<set $step19Visited = true>>\
<<set $stepsNeeded_Array = ["moveUp();","moveUp();","moveRight();","moveRight();","moveRight();","fixFloor();"]>>\
“Sweet. One left! Let's wrap this up. By the way, everything you're doing right now is actually an abstraction since there's a lot going on in your computer behind the scenes. Meta, huh?”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day2\GSDay2BG8wdot.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 19 - 20][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 19 - 20][$stepsTaken_Array = []]]
<</if>>\
<<else>>
“Sweet. One left! Let's wrap this up. By the way, everything you're doing right now is actually an abstraction since there's a lot going on in your computer behind the scenes. Meta, huh?”
[img[Images\Day2\GSDay2BG8wdot.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 19 - 20][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 19 - 20][$stepsTaken_Array = []]]
<</if>>\
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 19 - 20 Evaluation]]
[[Clear the commands.|Steps 19 - 20][$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 19 - 20][$stepsTaken_Array = []]]
<<else>>\
You patch the last hole.
<<set $stepsNeeded_Array = []>>\
<<set $stepsTaken_Array = []>>\
[[OK, what now?|Step 21]]
<</if>>[img[Images\Day2\GSDay2BG9wdot.png]]
“Wow. This place looks… amazing! Great work. You look pretty tired. Why don’t we head back over to the dorm so you can relax.”
[[Leave the gym.|Steps 22 - 25]]<<set _show to { start: 0, end: 2 }>>\
“You’ve done a lot today, I have to say I’m impressed. I can’t tell you how much stuff we’ve dropped between those floorboards...”
[img[Images\Day2\GSDay2BG10wdot.png]]
<div class='hide' id='next0'>“Oh...maybe we should have tried searching for some of that stuff, huh?”</div>
<div class='hide' id='next1'>“...Well too late now! Anyway, great job today and looking forward to working with you again tomorrow. Bye!”
</div><<set $stepsNeeded_Array to ["pickUp(book);"]>>\
<<set _commandLength = $stepsTaken_Array.length>>\
<<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set _show to { start: 0, end: 4 }>>\
“Welcome back. I was worried we’d seen the last of you. I thought I’d take you to the Classroom this time. I thought I could teach you some new skills so you can start fixing up the school!”
[img[Images\Day2\GSDay2BG1wdot.png]]
[Click the image to continue.]
<div class='hide' id='next0'>"So let’s go over a few things. You already know how to move around, but let’s teach you how to interact with objects in this world.”</div>
<div class='hide' id='next1'>“If you want to pick something up, you have to type pickUp(object);. This will allow you to carry any item that can be picked up. That’s how you’ll be collecting the tools for today’s task.”</div>
<div class='hide' id='next2'>““Let’s get some practice in. See that book? Why don’t you try picking it up with <span class ='command'>pickUp(book);</span>?”</div>
<div class='hide' id='next3'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 6 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>
<<else>>
“Let’s get some practice in. See that book? Why don’t you try picking it up with <span class ='command'>pickUp(book);</span>?”
[img[Images\Day2\GSDay2BG1wdot.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 _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 pick up the book.
[[I got it. Now what?|Step 7]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
“Wonderful. You can hang on to that for now, I’m sure we’ll find a use for it later. Why don’t we head on over to the gym so we can put these skills to the test?”
[img[Images\Day2\GSDay2BG2wdot.png]]
[[Go to the gym.|Steps 8 - 10]]
<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 - 6]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\