Skip to content

Commit 94b67c6

Browse files
committed
uploading all markdowns
1 parent 44f956b commit 94b67c6

166 files changed

Lines changed: 5842 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
### @flyoutOnly true
2+
### @hideIteration false
3+
### @explicitHints true
4+
5+
# Computer Scientist-2
6+
7+
## Step 1
8+
# First Computer Scientist (Debug)
9+
10+
The computer scientist has created punch cards that contain the instructions for the first algorithm, but the punch card holes are blocked. Use `agent.move()` to move your agent to above the brown blocks and then use `agent.destroy()` to break the block below it.
11+
12+
The `agent.move()` function takes one parameter, direction.
13+
14+
Valid directions are:
15+
- forward
16+
- back
17+
- left
18+
- right
19+
- up
20+
- down
21+
22+
The `agent.destroy()` function takes one parameter, direction.
23+
24+
Valid directions are:
25+
- forward
26+
- back
27+
- left
28+
- right
29+
- up
30+
- down
31+
32+
The `agent.turn()` function takes one parameter, turn_direction.
33+
34+
Valid directions are:
35+
- left
36+
- right
37+
38+
```python
39+
# move the Agent and forward 2 blocks
40+
# and break the blow below it.
41+
42+
agent.move("forward")
43+
agent.destroy("down")
44+
```
45+
46+
---
47+
48+
## Step 2
49+
# Activity:
50+
51+
The below code has incorrect values. Run the code to see what happens and then try to debug and fix the code to complete the activity.
52+
53+
**Note: Use the Reset Code button below to reset the coding box back to the debug code**
54+
55+
```python
56+
# code here
57+
58+
agent.move("forward")
59+
agent.destroy("up")
60+
agent.move("forward")
61+
agent.move("forward")
62+
agent.destroy("up")
63+
agent.move("forward")
64+
agent.move("forward")
65+
agent.destroy("up")
66+
agent.turn("left")
67+
agent.move("forward")
68+
agent.move("forward")
69+
agent.turn("left")
70+
agent.destroy("up")
71+
agent.move("forward")
72+
agent.move("forward")
73+
agent.destroy("up")
74+
agent.move("forward")
75+
agent.move("forward")
76+
agent.destroy("up")
77+
```
78+
79+
---
80+
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
### @flyoutOnly true
2+
### @hideIteration false
3+
### @explicitHints true
4+
5+
# Computer Scientist-3
6+
7+
## Step 1
8+
# First Computer Scientist (Solution)
9+
10+
The computer scientist has created punch cards that contain the instructions for the first algorithm, but the punch card holes are blocked. Use `agent.move()` to move your agent to above the brown blocks and then use `agent.destroy()` to break the block below it.
11+
12+
The `agent.move()` function takes one parameter, direction.
13+
14+
Valid directions are:
15+
- forward
16+
- back
17+
- left
18+
- right
19+
- up
20+
- down
21+
22+
The `agent.destroy()` function takes one parameter, direction.
23+
24+
Valid directions are:
25+
- forward
26+
- back
27+
- left
28+
- right
29+
- up
30+
- down
31+
32+
The `agent.turn()` function takes one parameter, turn_direction.
33+
34+
Valid directions are:
35+
- left
36+
- right
37+
38+
```python
39+
# move the Agent and forward 2 blocks
40+
# and break the blow below it.
41+
42+
agent.move("forward")
43+
agent.destroy("down")
44+
```
45+
46+
---
47+
48+
## Step 2
49+
# Activity:
50+
51+
The below code is the correct solution to the activity. Run the code to see it in action.
52+
53+
**Note: Use the Reset Code button below to reset the coding box back to the solution**
54+
55+
```python
56+
# code here
57+
58+
agent.move("forward")
59+
agent.destroy("down")
60+
agent.move("forward")
61+
agent.move("forward")
62+
agent.destroy("down")
63+
agent.move("forward")
64+
agent.move("forward")
65+
agent.destroy("down")
66+
agent.turn("right")
67+
agent.move("forward")
68+
agent.move("forward")
69+
agent.turn("right")
70+
agent.destroy("down")
71+
agent.move("forward")
72+
agent.move("forward")
73+
agent.destroy("down")
74+
agent.move("forward")
75+
agent.move("forward")
76+
agent.destroy("down")
77+
```
78+
79+
---
80+
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
### @flyoutOnly true
2+
### @hideIteration false
3+
### @explicitHints true
4+
5+
# Computer Scientist
6+
7+
## Step 1
8+
# First Computer Scientist
9+
10+
The computer scientist has created punch cards that contain the instructions for the first algorithm, but the punch card holes are blocked. Use `agent.move()` to move your agent to above the brown blocks and then use `agent.destroy()` to break the block below it.
11+
12+
The `agent.move()` function takes one parameter, direction.
13+
14+
Valid directions are:
15+
- forward
16+
- back
17+
- left
18+
- right
19+
- up
20+
- down
21+
22+
The `agent.destroy()` function takes one parameter, direction.
23+
24+
Valid directions are:
25+
- forward
26+
- back
27+
- left
28+
- right
29+
- up
30+
- down
31+
32+
The `agent.turn()` function takes one parameter, turn_direction.
33+
34+
Valid directions are:
35+
- left
36+
- right
37+
38+
```python
39+
# move the Agent and forward 2 blocks
40+
# and break the blow below it.
41+
42+
agent.move("forward")
43+
agent.destroy("down")
44+
```
45+
46+
---
47+
48+
## Step 2
49+
# Activity:
50+
51+
Program the Agent to break all the brown blocks.
52+
53+
**Note: You can reset the activity by using your T.A.L.K. device or by using the Reset Activity button.**
54+
55+
56+
57+
---
58+

python/HOC2021/deploy_agent.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### @flyoutOnly true
2+
### @hideIteration false
3+
### @explicitHints true
4+
5+
# Deploy Agent
6+
7+
## Step 1
8+
## Agent Deployed!
9+
You've successfully deployed your Agent!
10+
11+
This is the Code Builder window, you'll use it when you're ready to code!
12+
13+
Below you'll see a coding box. In the next activity, that's where you'll write and run your code.
14+
15+
16+
17+
---
18+
19+
## Step 2
20+
Close this window to continue on to your adventure!
21+
22+
23+
24+
---
25+
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
### @flyoutOnly true
2+
### @hideIteration false
3+
### @explicitHints true
4+
5+
# Elements Discovery-2
6+
7+
## Step 1
8+
# Elements of Discovery (Debug)
9+
10+
When the chemist left the room, someone hid her research inside the bookcase. Code your
11+
Agent to break the green glowing bookcase, so that she can share her discoveries. Use the `agent.move()` function to move the Agent toward the green glowing bookcase, and then use `agent.destroy()` to break them.
12+
13+
The `agent.move()` function takes one parameter, direction.
14+
15+
Valid directions are:
16+
- forward
17+
- back
18+
- left
19+
- right
20+
- up
21+
- down
22+
23+
The `agent.destroy()` function takes one parameter, direction.
24+
25+
Valid directions are:
26+
- forward
27+
- back
28+
- left
29+
- right
30+
- up
31+
- down
32+
33+
The `agent.turn()` function takes one parameter, turn_direction.
34+
35+
Valid directions are:
36+
- left
37+
- right
38+
39+
```python
40+
# move the Agent up 2 blocks, forward 2 blocks
41+
# and then break the block to the left
42+
43+
agent.move("up")
44+
agent.move("up")
45+
agent.move("forward")
46+
agent.move("forward")
47+
agent.destroy("left")
48+
```
49+
50+
---
51+
52+
## Step 2
53+
# Pro Tip:
54+
55+
Use a `for` loop to do one or more actions multiple times.
56+
57+
```python
58+
# move the Agent up 2 blocks, forward 2 blocks
59+
# and then break the block to the left
60+
61+
for i in range (2):
62+
agent.move("up")
63+
for i in range (2):
64+
agent.move("forward")
65+
agent.destroy("left")
66+
```
67+
68+
---
69+
70+
## Step 3
71+
# Activity:
72+
73+
The below code has incorrect values. Run the code to see what happens and then try to debug and fix the code to complete the activity.
74+
75+
**Note: Use the Reset Code button below to reset the coding box back to the debug code**
76+
77+
```python
78+
# code here
79+
80+
agent.move("up")
81+
agent.move("up")
82+
83+
agent.move("forward")
84+
agent.move("forward")
85+
86+
agent.destroy("left")
87+
```
88+
89+
---
90+

0 commit comments

Comments
 (0)