-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
902 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Computer Scientist (Debug) | ||
|
||
## Step 1 | ||
There's something wrong with the below code. Press the green play button to run it to see what happens, and then debug it to see what's wrong and what changes are needed to make it work. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to each BROWN block. Then use ``||agent.agent destroy||`` in the direction you want the block destroyed to remove the BROWN block. Repeat this until all the BROWN blocks are destroyed. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
agent.move(FORWARD, 1) | ||
agent.destroy(UP) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(UP) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(UP) | ||
agent.turn(LEFT_TURN) | ||
agent.move(FORWARD, 2) | ||
agent.turn(LEFT_TURN) | ||
agent.destroy(UP) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(UP) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(UP) | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Computer Scientist (Solution) | ||
|
||
## Step 1 | ||
The below code is the correct solution to the activity. Run the code by pressing the green play button to see it in action. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to each BROWN block. Then use ``||agent.agent destroy||`` in the direction you want the block destroyed to remove the BROWN block. Repeat this until all the BROWN blocks are destroyed. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
agent.move(FORWARD, 1) | ||
agent.destroy(DOWN) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(DOWN) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(DOWN) | ||
agent.turn(RIGHT_TURN) | ||
agent.move(FORWARD, 2) | ||
agent.turn(RIGHT_TURN) | ||
agent.destroy(DOWN) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(DOWN) | ||
agent.move(FORWARD, 2) | ||
agent.destroy(DOWN) | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Computer Scientist | ||
|
||
## Step 1 | ||
Someone filled in the computer scientist's punch cards that contain the instructions for the first algorithm. Code your Agent to DESTROY the BROWN blocks to make the cards work. | ||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to each BROWN block. Then use ``||agent.agent destroy||`` in the direction you want the block destroyed to remove the BROWN block. Repeat this until all the BROWN blocks are destroyed. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
\\ | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Agent Deployed! | ||
|
||
## Step 1 | ||
You've successfully deployed your Agent! This is the Code Builder window, you'll use it when you're ready to code! Hit the green play button to close this window and continue on to your adventure! | ||
|
||
```ghost | ||
null | ||
``` | ||
```template | ||
{} | ||
``` | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Elements of Discovery (Debug) | ||
|
||
## Step 1 | ||
There's something wrong with the below code. Press the green play button to run it to see what happens, and then debug it to see what's wrong and what changes are needed to make it work. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to the green glowing bookcases. Use ``||agent.agent destroy||`` in the direction you want to destroy the green glowing bookcases block. Repeat this until the 3 bookcase blocks are destroyed. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
agent.move(UP, 2) | ||
agent.move(FORWARD, 3) | ||
agent.destroy(LEFT) | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Elements of Discovery (Solution) | ||
|
||
## Step 1 | ||
The below code is the correct solution to the activity. Run the code by pressing the green play button to see it in action. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to the green glowing bookcases. Use ``||agent.agent destroy||`` in the direction you want to destroy the green glowing bookcases block. Repeat this until the 3 bookcase blocks are destroyed. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
agent.move(UP, 1) | ||
agent.move(FORWARD, 4) | ||
agent.destroy(LEFT) | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Elements of Discovery | ||
|
||
## Step 1 | ||
When the chemist left the room, someone hid her research inside the bookcase. Code your Agent to DESTROY the green glowing bookcase, so that she can share her discoveries. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` and ``||agent.agent turn||`` to move your Agent to the green glowing bookcases. Use ``||agent.agent destroy||`` in the direction you want to destroy the green glowing bookcases block. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.destroy(FORWARD) | ||
agent.turn(RIGHT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
\\ | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Flight (Debug) | ||
|
||
## Step 1 | ||
There's something wrong with the below code. Press the green play button to run it to see what happens, and then debug it to see what's wrong and what changes are needed to make it work. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` to send your Agent to the hole. Fill each hole using ``||agent.agent place||`` to PLACE the `Dirt` block we've given the Agent. Repeat ``||agent.agent move||`` and ``||agent.agent place||`` until all the holes are filled. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.place(FORWARD) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
for (let index = 0; index < 3; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(UP) | ||
} | ||
agent.move(FORWARD, 2) | ||
agent.move(RIGHT, 2) | ||
for (let index = 0; index < 3; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(UP) | ||
} | ||
agent.move(FORWARD, 2) | ||
agent.move(RIGHT, 2) | ||
for (let index = 0; index < 3; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(UP) | ||
} | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Flight (Solution) | ||
|
||
## Step 1 | ||
The below code is the correct solution to the activity. Run the code by pressing the green play button to see it in action. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` to send your Agent to the hole. Fill each hole using ``||agent.agent place||`` to PLACE the `Dirt` block we've given the Agent. Repeat ``||agent.agent move||`` and ``||agent.agent place||`` until all the holes are filled. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.place(FORWARD) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
for (let index = 0; index < 2; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(DOWN) | ||
} | ||
agent.move(FORWARD, 2) | ||
agent.move(RIGHT, 2) | ||
for (let index = 0; index < 2; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(DOWN) | ||
} | ||
agent.move(FORWARD, 2) | ||
agent.move(RIGHT, 2) | ||
for (let index = 0; index < 2; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(DOWN) | ||
} | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# First Flight | ||
|
||
## Step 1 | ||
One of the first planes is about to take off, but there are holes in the runway! Code your Agent to fill the holes with `Dirt` blocks we've given it. | ||
|
||
#### ~ tutorialhint | ||
Use ``||agent.agent move||`` to send your Agent to the hole. Fill each hole using ``||agent.agent place||`` to PLACE the `Dirt` block we've given the Agent. Repeat ``||agent.agent move||`` and ``||agent.agent place||`` until all the holes are filled. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.place(FORWARD) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
\\ | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Great Pyramid at Giza (Debug) | ||
|
||
## Step 1 | ||
There's something wrong with the below code. Press the green play button to run it to see what happens, and then debug it to see what's wrong and what changes are needed to make it work. | ||
|
||
#### ~ tutorialhint | ||
Think about how the Agent needs to move to place the right number of blocks for each level of the pyramid. Use the ``||agent.agent move||`` block to move your agent forward and for each step use ``||agent.agent place||`` to PLACE the `Smooth Sandstone` we've given the Agent. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.place(FORWARD) | ||
agent.turn(LEFT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
for (let index=0); index < 3; index++){ | ||
agent.move(FORWARD, 1) | ||
agent.place(BACK) | ||
} | ||
agent.move(UP, 1) | ||
agent.turn(LEFT_TURN) | ||
agent.turn(RIGHT_TURN) | ||
agent.move(FORWARD, 1) | ||
agent.move(FORWARD, 1) | ||
agent.move(FORWARD, 1) | ||
agent.place(UP) | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints true | ||
|
||
# Great Pyramid at Giza (Solution) | ||
|
||
## Step 1 | ||
The below code is the correct solution to the activity. Run the code by pressing the green play button to see it in action. | ||
|
||
#### ~ tutorialhint | ||
Think about how the Agent needs to move to place the right number of blocks for each level of the pyramid. Use the ``||agent.agent move||`` block to move your agent forward and for each step use ``||agent.agent place||`` to PLACE the `Smooth Sandstone` we've given the Agent. | ||
|
||
```ghost | ||
agent.move(FORWARD, 0) | ||
agent.place(FORWARD) | ||
agent.turn(LEFT_TURN) | ||
for (let index = 0; index < 4; index++) { | ||
} | ||
``` | ||
```template | ||
for (let index=0); index < 3; index++){ | ||
agent.move(FORWARD, 1) | ||
agent.place(BACK) | ||
} | ||
agent.move(UP, 1) | ||
agent.turn(LEFT_TURN) | ||
agent.turn(LEFT_TURN) | ||
agent.move(FORWARD, 1) | ||
agent.move(FORWARD, 1) | ||
agent.move(FORWARD, 1) | ||
agent.place(BACK) | ||
``` | ||
```package | ||
``` |
Oops, something went wrong.