You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/skillmap/bug-arena/squares.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Welcome to the 👾 **Bug Arena** 👾 where the smartest bugs battle for glory!
7
7
8
8
Watch this introduction video to get started, and then click Ok.
9
9
10
-

10
+

11
11
12
12
## Squares Algorithm
13
13
@@ -21,7 +21,7 @@ Let's code your bug to move around the screen coloring the arena in a square pat
21
21
22
22
Our bug moves on its own, but it's important to make sure that it starts out moving in the right direction! 🗺️
23
23
24
-
From the ``||hourOfAi:Hour of AI||`` Toolbox category, drag the ``||hourOfAi:face towards 0||`` block out and drop into the ``||hourOfAi:on start||`` block.
24
+
From the ``||hourOfAi:Bug AI||`` Toolbox category, drag the ``||hourOfAi:face towards 0||`` block out and drop into the ``||hourOfAi:on start||`` block.
25
25
26
26
~hint What does this do?
27
27
@@ -58,7 +58,7 @@ Uh-oh! It gets stuck! 🔄
58
58
59
59
Let's code in some behavior for when it hits a wall. 🧱
60
60
61
-
From the ``||hourOfAi:Hour of AI||`` category, drag an ``||hourOfAi:on bump wall||`` block out onto the Workspace - you can put it anywhere.
61
+
From the ``||hourOfAi:Bug AI||`` category, drag an ``||hourOfAi:on bump wall||`` block out onto the Workspace - you can put it anywhere.
From the ``||hourOfAi:Hour of AI||`` category, drag a ``||hourOfAi:turn 90||`` block, and drop it into the ``||hourOfAi:on bump wall||`` block.
71
+
From the ``||hourOfAi:Bug AI||`` category, drag a ``||hourOfAi:turn 90||`` block, and drop it into the ``||hourOfAi:on bump wall||`` block.
72
72
<br/>
73
73
<br/>
74
74
@@ -115,7 +115,7 @@ hint~
115
115
116
116
We need to have our bug check to make sure it's not on a part of the screen that's already covered with its paint color 🎨 before turning.
117
117
118
-
From the ``||hourOfAi:Hour of AI||`` category, drag the ``||hourOfAi:every 500 ms||`` group of blocks out onto the Workspace - you can put it anywhere.
118
+
From the ``||hourOfAi:Bug AI||`` category, drag the ``||hourOfAi:every 500 ms||`` group of blocks out onto the Workspace - you can put it anywhere.
119
119
120
120
~hint What does this do?
121
121
@@ -145,7 +145,7 @@ hourOfAi.every(500, function () {
145
145
146
146
When the distance from our bug to its own paint color is 0, then we should make a right turn. ↩️
147
147
148
-
From the ``||hourOfAi:Hour of AI||`` category, drag a ``||hourOfAi:turn 90||`` block out and drop into the ``||Logic:if then||`` block.
148
+
From the ``||hourOfAi:Bug AI||`` category, drag a ``||hourOfAi:turn 90||`` block out and drop into the ``||Logic:if then||`` block.
149
149
150
150
```blocks
151
151
hourOfAi.every(500, function () {
@@ -160,7 +160,7 @@ hourOfAi.every(500, function () {
160
160
161
161
Test your game again in the 🕹️ Game Window below.
162
162
163
-
You can move the slider to the right ➡️ to watch your bug make perfect squares! 🟨🟦🟩
163
+
You can move the **SPEED**slider to the right ➡️ to watch your bug make perfect squares! 🟨🟦🟩
164
164
165
165
Nice work! 👍 You've coded a smart AI algorithm ✨ that will box in your competitors in the Bug Arena!
0 commit comments