Your browser lacks required capabilities. Please upgrade it or switch to another to continue.
Loading…
<<set $name = null>>
<<set $commandString = null>>
<<set $stepsTaken_Array to []>>
<<set $stepsNeeded_Array to ["moveUp();"]>><<if $Step1Visited == null>>\
<<set $Step1Visited = true>>\
<<set $stepsNeeded_Array to ["moveUp();"]>>\
<<set _show to { start: 0, end: 3 }>>\
“Hi there. Welcome to the Ghost School! This here is the dorm room. You’ll be staying here while we work on the rest of the building. Hmm? Why do you look so confused?”
[img[Images\Day1\Day1BG1.png]]
[Click the picture to continue.]
<div class='hide' id='next0'>
“Oh, do you not like the whole virtual body thing? I mean hey, it's not perfect, but that's what data abstraction is all about - taking complex objects and simplifying them.”</div>
<div class='hide' id='next1'>
"In the Ghost World, we move differently than in the regular world. We use something called 'Ghost Code.' Let’s see if you can move like we do! Type <span class="command">moveUp();</span> to move, well...up! Make sure you spell it exactly like this!"
[img[Images\Day1\Day1BG2.png]] </div>
<div class='hide' id='next2'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 6 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
"In the Ghost World, we move differently than in the regular world. We use something called 'Ghost Code.' Let’s see if you can move like we do! Type <span class="command">moveUp();</span> to move, well...up! Make sure you spell it exactly like this!"
[img[Images\Day1\Day1BG2.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 1 - 6 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 step upward.
[[I think I get it.|Steps 7 - 9]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step6Visited == null>>\
<<set $Step6Visited = true>>\
<<set $stepsNeeded_Array to ["moveDown();"]>>\
<<set _show to { start: 0, end: 2 }>>\
“Perfect. Make sure you type it exactly like I showed you, and always remember your semicolons. Ghost Code is a type of Pseudocode, which is code in plain language.”
<div class='hide' id='next0'>“Now, try using <span class="command">moveDown();</span>”
[img[Images\Day1\Day1BG3.png]]</div>
<div class='hide' id='next1'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 9 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
“Now, try using <span class="command">moveDown();</span>”
[img[Images\Day1\Day1BG3.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 7 - 9 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 - 9][$stepsTaken_Array = []]]
<<else>>\
You step downward.
[[Yep. Got it.|Steps 10 - 11]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step9Visited == null>>\
<<set $Step9Visited = true>>\
<<set $stepsNeeded_Array to ["moveLeft();"]>>\
<<set _show to { start: 0, end: 1 }>>\
“Great! Let’s see, can you try using “Now, try using <span class="command">moveLeft();</span> ?”
[img[Images\Day1\Day1BG4.png]]
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 10 - 11 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
“Great! Let’s see, can you try using <span class="command">moveLeft();</span> ?”
[img[Images\Day1\Day1BG4.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 10 - 11 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 10 - 11][$stepsTaken_Array = []]]
<<else>>\
You step to the left.
[[Yep. Got it.|Steps 12 - 13]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step11Visited == null>>\
<<set $Step11Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();"]>>\
<<set _show to { start: 0, end: 1 }>>\
“Last one! Try typing <span class="command">moveRight();</span> .”
[img[Images\Day1\Day1BG5.png]]
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 12 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
“Last one! Try typing <span class="command">moveRight();</span> .”
[img[Images\Day1\Day1BG5.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 12 - 13 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 12 - 13][$stepsTaken_Array = []]]
<<else>>\
You step to the right.
[[Yep. Got it.|Steps 14 - 15]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step14Visited == null>>\
<<set $Step14Visited = true>>\
<<set $stepsNeeded_Array to ["moveUp();", "moveUp();", "moveLeft();", "moveLeft();", "moveLeft();", "moveLeft();"]>>\
<<set _show to { start: 0, end: 1 }>>\
[img[Images\Day1\Day1BG6.png]]
“Good! You can move in our world. You might really be able to help us! Now use those new skills to try and get over to me.
Type in a command and click 'Enter command' to enter it into a list--once you've filled up the list of commands, click 'Check solution' and we'll check them all at once. If you mess up, click 'Clear the commands' to try again!”
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'><<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 14 - 15][$stepsTaken_Array = []]]
<</if>></div>\
<<else>>
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day1\Day1BG6.png]]
“Good! You can move in our world. You might really be able to help us! Now use those new skills to try and get over to me.
Click the input box below and type in a command, then click the 'Enter command' text to enter it into a list. Once you've filled up the list of commands, click 'Check solution' and we'll check them all at once.
If you mess up, click 'Clear the commands' to try again!”
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 14 - 15][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 14 - 15][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 14 - 15 Evaluation]]
[[Clear the commands.|Steps 14 - 15][$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 14 - 15][$stepsTaken_Array = []]]
<<else>>\
You make your way over to the ghost.
[[Yo.|Steps 16 - 17]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step18Visited == null>>\
<<set $Step18Visited = true>>\
<<set $stepsNeeded_Array to ["moveRight();","moveRight();","moveRight();","moveDown();","moveDown();", "moveRight();"]>>\
<<set _show to { start: 0, end: 1 }>>\
“Gotcha! Come back over here!”
[img[Images\Day1\Day1BG8.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'><<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 19][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 18 - 19][$stepsTaken_Array = []]]
<</if>></div>\
<<else>>
“Gotcha! Come back over here!”
<<set _commandLength = $stepsTaken_Array.length>>\
[img[Images\Day1\Day1BG8.png]]
<<if _commandLength < $stepsNeeded_Array.length>><label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 18 - 19][$stepsTaken_Array.push(_commandString)]]
[[Clear the commands.|Steps 18 - 19][$stepsTaken_Array = []]]
<</if>>
<<if _commandLength >= $stepsNeeded_Array.length>>\
[[Check solution.|Steps 18 - 19 Evaluation]]
[[Clear the commands.|Steps 18 - 19][$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 18 - 19][$stepsTaken_Array = []]]
<<else>>\
You walk over to the ghost.
[[Next?|Steps 20 - 21]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step20Visited == null>>\
<<set $Step20Visited = true>>\
<<set $stepsNeeded_Array to ["talk();"]>>\
<<set _show to { start: 0, end: 1 }>>\
“Okay I won’t run away this time. Just try to <span class="command">talk();</span> to me again.”
[img[Images\Day1\Day1BG9.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>>\
“Okay I won’t run away this time. Just try to <span class="command">talk();</span> to me again.”
[img[Images\Day1\Day1BG9.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 20 - 21 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</if>><<set _show to { start: 0, end: 3 }>>\
“Woah. That really clears up the space in here. I appreciate it.”
<div class='hide' id='next0'>
“This is really exciting! You definitely will be able to help us fix up the Ghost School!”[img[Images\Day1\Day1BG12.png]]</div>\
<div class='hide' id='next1'>
“Why don’t we call that a day? I’m looking forward to seeing what you’re really capable of.”
[img[Images\Day1\Day1BG13.png]]</div>\
<div class='hide' id='next2'>“See you tomorrow!”\
</div><<if $Step16Visited == null>>\
<<set $Step16Visited = true>>\
<<set $stepsNeeded_Array to ["talk();"]>>\
<<set _show to { start: 0, end: 1 }>>\
“Now let’s see if you can talk to me. I’ve been using <span class="command">talk();</span> to speak. Try using talk(); to respond to me!”
[img[Images\Day1\Day1BG7.png]]
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
“Now let’s see if you can talk to me. I’ve been using talk(); to speak. Try using talk(); to respond to me!”
[img[Images\Day1\Day1BG7.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 16 - 17 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 look at the ghost.
"[[Tag.|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 20 - 21][$stepsTaken_Array = []]]
<<else>>\
You say, "Tag. Again."
[[Next?|Steps 22 - 23]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\
<<if $Step22Visited == null>>\
<<set $Step22Visited = true>>\
<<set _show to { start: 0, end: 1 }>>\
<<set $stepsNeeded_Array to ["clean();"]>>\
“Great work so far. For the last step, why don’t we clean up this room a bit? Try using <span class="command">clean();</span>”
[img[Images\Day1\Day1BG10.png]]
<<set _commandLength = $stepsTaken_Array.length>>\
<div class='hide' id='next0'>\
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 23 Evaluation][$stepsTaken_Array.push(_commandString)]]
</div>\
<<else>>\
“Great work so far. For the last step, why don’t we clean up this room a bit? Try using <span class="command">clean();</span>”
[img[Images\Day1\Day1BG10.png]]
<label>Enter a command. <<textbox "_commandString" "">></label>
[[Enter command.|Steps 22 - 23 Evaluation][$stepsTaken_Array.push(_commandString)]]
<</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 - 23][$stepsTaken_Array = []]]
<<else>>\
Trash in the room rattles and then disappears into fading motes of light.
[img[Images\Day1\Day1BG11.png]]
[[Next?|Steps 24 - 29]]
<<set $stepsNeeded_Array = []>>
<<set $stepsTaken_Array = []>>
<</if>>\