Skip to content

Commit c959630

Browse files
authored
hide numbered step headings (#5739)
1 parent 4e66612 commit c959630

File tree

10 files changed

+73
-73
lines changed

10 files changed

+73
-73
lines changed

docs/projects/level.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Level
22

3-
## Introduction @unplugged
3+
## Is it level? @unplugged
44

55
Is your table flat? Use the @boardname@ as a level!
66

77
![A level drawing](/static/mb/projects/level.png)
88

99

10-
## Step 1
10+
## {Step 1}
1111

1212
Make a variable ``||variables:x||`` and store the ``||input:acceleration x||`` value
1313
in the ``||basic:forever||`` loop.
@@ -19,7 +19,7 @@ basic.forever(function() {
1919
})
2020
```
2121

22-
## Step 2
22+
## {Step 2}
2323

2424
Make another variable ``||variables:y||`` and store the ``||input:acceleration y||`` value.
2525

@@ -31,7 +31,7 @@ basic.forever(function() {
3131
})
3232
```
3333

34-
## Step 3
34+
## {Step 3}
3535

3636
Add a code to test ``||logic:if||`` the ``||Math:absolute value||`` of ``||variables:x||`` is ``||logic:greater than||`` ``32``.
3737
If it is true, ``||basic:show an icon||`` to tell you that the @boardname@ is not flat, ``||logic:else||`` show nothing, for now.
@@ -49,7 +49,7 @@ basic.forever(function() {
4949
})
5050
```
5151

52-
## Step 4
52+
## {Step 4}
5353

5454
Add an ``||logic:else if||`` to check that the ``||Math:absolute value||`` of ``||variables:y||`` is ``||logic:greater than||`` ``32``.
5555
If it is true, ``||basic:show an icon||`` that tells you the @boardname@ is not flat.
@@ -69,7 +69,7 @@ basic.forever(function() {
6969
})
7070
```
7171

72-
## Step 5
72+
## {Step 5}
7373

7474
The code under the ``||logic:else||`` will run if both acceleration ``x`` and ``y`` are small, which happens when the @boardname@ is laying flat. Add code to ``||basic:show a happy image||``.
7575

@@ -88,7 +88,7 @@ basic.forever(function() {
8888
})
8989
```
9090

91-
## Step 6
91+
## {Step 6}
9292

9393
If you have a @boardname@ connected, click ``|Download|`` to transfer your code!
9494
Try it out on a table, counter, or window sill in your house!

docs/projects/spy/7-seconds.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
### @explicitHints true
44

5-
## Introduction @unplugged
5+
## Can you react at the right time? @unplugged
66

77
The goal of this game is press a button after **exactly** 7 seconds!
88

99
![A micro:bit looking at a 7 second stopwatch](/static/mb/projects/7-seconds.png)
1010

11-
This game is inspired from the [flipping panckakes game](https://www.elecfreaks.com/blog/post/flipping-pancakes-microbit-game.html).
11+
This game is inspired from the [flipping pancakes game](https://www.elecfreaks.com/blog/post/flipping-pancakes-microbit-game.html).
1212

13-
## Step 1
13+
## {Step 1}
1414

1515
The player starts the timer by pressing button **A**. Add the code to run code when
1616
``||input:button A is pressed||``.
@@ -21,7 +21,7 @@ input.onButtonPressed(Button.A, function () {
2121
})
2222
```
2323

24-
## Step 2
24+
## {Step 2}
2525

2626
We need to remember the time when the button was pressed so that we can compute the elapsed
2727
time later on. Add code to store the ``||input:running time||`` in a ``||variables:start||``
@@ -35,7 +35,7 @@ input.onButtonPressed(Button.A, function () {
3535
})
3636
```
3737

38-
## Step 3
38+
## {Step 3}
3939

4040
Show something on the screen so that the user knows that the timer has started...
4141

@@ -48,7 +48,7 @@ input.onButtonPressed(Button.A, function () {
4848
})
4949
```
5050

51-
## Step 4
51+
## {Step 4}
5252

5353
The player stops the timer by pressing button **B**. Add another event to run code when
5454
``||input:button B is pressed||``.
@@ -59,7 +59,7 @@ input.onButtonPressed(Button.B, function () {
5959
})
6060
```
6161

62-
## Step 5
62+
## {Step 5}
6363

6464
Compute the elapsed time as ``||input:running time||`` ``||math:minus||`` ``||variables:start||`` and
6565
store it in a new local variable (a variable only inside the event) called ``||variables:elapsed||``.
@@ -72,7 +72,7 @@ input.onButtonPressed(Button.B, function () {
7272
})
7373
```
7474

75-
## Step 6
75+
## {Step 6}
7676

7777
Compute the ``||variables:score||`` of the game as the ``||math:absolute value||`` of the
7878
``||math:difference||`` of ``||variables:elapsed||`` time from 7 seconds, which is `7000`
@@ -87,7 +87,7 @@ input.onButtonPressed(Button.B, function () {
8787
})
8888
```
8989

90-
## Step 7
90+
## {Step 7}
9191

9292
Display the score on the screen and your game is ready!
9393

docs/projects/spy/coin-flipper.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
### @explicitHints true
44

5-
## Introduction @unplugged
5+
## Heads or Tails? @unplugged
66

77
Let's create a coin flipping program to simulate a real coin toss. We'll use icon images to represent a ``heads`` or ``tails`` result.
88

99
![Simulating coin toss](/static/mb/projects/coin-flipper/coin-flipper.gif)
1010

11-
## Step 1
11+
## {Step 1}
1212

1313
Add an event to run code when ``||input:button A pressed||``. We'll put our coin flipping
1414
code in here.
@@ -18,7 +18,7 @@ input.onButtonPressed(Button.A, () => {
1818
})
1919
```
2020

21-
## Step 2
21+
## {Step 2}
2222

2323
Inside the event for ``||input:button A pressed||``, put in code to check ``||logic:if||`` a ``||math:random boolean||`` value is `true` or `false`.
2424

@@ -33,7 +33,7 @@ input.onButtonPressed(Button.A, () => {
3333
})
3434
```
3535

36-
## Step 3
36+
## {Step 3}
3737

3838
Now, ``||basic:show icon||`` for a `skull` ``||logic:if||`` the ``||math:random boolean||`` value is ``true``. This means ``heads``. ``||basic:show icon||`` of a ``square`` when ``false`` to mean
3939
``tails``.
@@ -48,7 +48,7 @@ input.onButtonPressed(Button.A, () => {
4848
})
4949
```
5050

51-
## Step 4
51+
## {Step 4}
5252

5353
Press button **A** in the simulator to try the coin toss code.
5454

@@ -72,10 +72,10 @@ input.onButtonPressed(Button.A, () => {
7272
})
7373
```
7474

75-
## Step 6
75+
## {Step 6}
7676

7777
If you have a @boardname@, connect it to USB and click ``|Download|`` to transfer your code.
7878

79-
## Step 7
79+
## {Step 7}
8080

8181
Press button **A** for a flip. Test your luck and guess ``heads`` or ``tails`` before the toss is over!

docs/projects/spy/compass.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Compass
22

3-
## Introduction @unplugged
3+
## Find your direction! @unplugged
44

55
This tutorial will show you how to program a script that displays which direction the @boardname@ is pointing. Let's get started!
66

77
![A cartoon of a compass](/static/mb/projects/a5-compass.png)
88

9-
## Step 1
9+
## {Step 1}
1010

1111
Store the ``||input:compass heading||`` of the @boardname@ in a variable called ``||variables:degrees||`` in the ``||basic:forever||`` loop.
1212

@@ -16,7 +16,7 @@ basic.forever(function() {
1616
})
1717
```
1818

19-
## Step 2
19+
## {Step 2}
2020

2121
``||logic:If||`` ``||variables:degrees||`` is ``||logic:less than||`` `45`,
2222
then the compass heading is mostly pointing toward **North**. ``||basic:Show||`` `N` on the @boardname@.
@@ -30,7 +30,7 @@ basic.forever(function() {
3030
})
3131
```
3232

33-
## Step 3
33+
## {Step 3}
3434

3535
``||logic:If||`` ``||variables:degrees||`` is less than `135`, the @boardname@ is mostly pointing **East**. ``||basic:Show||`` `E` on the @boardname@.
3636

@@ -46,11 +46,11 @@ basic.forever(function() {
4646
})
4747
```
4848

49-
## Step 4
49+
## {Step 4}
5050

5151
Go to the simulator and rotate the @boardname@ logo to simulate changes in the compass heading.
5252

53-
## Step 5
53+
## {Step 5}
5454

5555
``||logic:If||`` ``||variables:degrees||`` is less than `225`, the @boardname@ is mostly pointing **South**. ``||basic:Show||`` `S` on the @boardname@.
5656

@@ -69,7 +69,7 @@ basic.forever(function() {
6969
})
7070
```
7171

72-
## Step 6
72+
## {Step 6}
7373

7474
``||logic:If||`` ``||variables:degrees||`` is less than `315`, the @boardname@ is mostly pointing **West**. ``||basic:Show||`` `W` on the @boardname@.
7575

@@ -89,7 +89,7 @@ basic.forever(function() {
8989
})
9090
```
9191

92-
## Step 7
92+
## {Step 7}
9393

9494
``||logic:If||`` none of these conditions returned true, then the @boardname@ must be pointing **North** again. Display `N` on the @boardname@.
9595

@@ -114,7 +114,7 @@ basic.forever(function() {
114114
})
115115
```
116116

117-
## Step 8 @unplugged
117+
## Download @unplugged
118118

119119
If you have a @boardname@, click `|Download|` and follow the screen instructions.
120120
You will have to follow the screen instructions to calibrate your compass.

docs/projects/spy/heads-guess.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
### @explicitHints true
44

5-
## Introduction @unplugged
5+
## Make a Heads Up guessing game! @unplugged
66

77
This is a simple remake of the famous **Heads Up!** game. The player holds the @boardname@ on the forehead and has 30 seconds to guess words displayed on the screen.
88
If the guess is correct, the player tilts the @boardname@ forward; to pass, the player tilts it backwards.
99

10-
## Step 1
10+
## {Step 1}
1111

1212
Put in code to ``||game:start a countdown||`` of 30 seconds.
1313

1414
```spy
1515
game.startCountdown(30000)
1616
```
1717

18-
## Step 2
18+
## {Step 2}
1919

2020
Create an ``||arrays:array||`` called `text_list` of words to guess. Arrays are also called lists.
2121

@@ -25,7 +25,7 @@ text_list = ["PUPPY", "CLOCK", "NIGHT"]
2525
game.startCountdown(30000)
2626
```
2727

28-
## Step 3
28+
## {Step 3}
2929

3030
Add an event to run code when a ``||input:gesture||`` points the @boardname@ ``||input:logo up||``.
3131
This is the gesture to get a new word.
@@ -36,7 +36,7 @@ input.onGesture(Gesture.LogoUp, function () {
3636
})
3737
```
3838

39-
## Step 4
39+
## {Step 4}
4040

4141
The items in the ``||arrays:text list||`` are numbered ``0`` to ``length - 1``.
4242
Add code to pick a ``||math:random||`` ``||variables:index||``.
@@ -50,7 +50,7 @@ input.onGesture(Gesture.LogoUp, function () {
5050
})
5151
```
5252

53-
## Step 5
53+
## {Step 5}
5454

5555
Add code to ``||basic:show||`` the value of the item stored at ``||variables:index||`` in
5656
``||arrays:text list||``.
@@ -65,7 +65,7 @@ input.onGesture(Gesture.LogoUp, function () {
6565
})
6666
```
6767

68-
## Step 6
68+
## {Step 6}
6969

7070
Use an event to run code when a gesture has the @boardname@ ``||input:screen||`` is
7171
pointing ``||input:down||``. This is the gesture for a correct guess.
@@ -76,7 +76,7 @@ input.onGesture(Gesture.ScreenDown, function () {
7676
})
7777
```
7878

79-
## Step 7
79+
## {Step 7}
8080

8181
Put in code to add points to the ``||game:score||``.
8282

@@ -87,7 +87,7 @@ input.onGesture(Gesture.ScreenDown, function () {
8787
})
8888
```
8989

90-
## Step 8
90+
## {Step 8}
9191

9292
Add anonther event to run code when a gesture has the @boardname@ ``||input:screen||`` is
9393
pointing ``||input:up||``. This is the gesture for a pass.
@@ -98,7 +98,7 @@ input.onGesture(Gesture.ScreenUp, function () {
9898
})
9999
```
100100

101-
## Step 9
101+
## {Step 9}
102102

103103
For the pass gesture, add code to remove a ``||game:life||`` from the player.
104104

docs/projects/spy/hot-potato.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### @explicitHints true
44
### @diffs true
55

6-
## Introduction @unplugged
6+
## Pass off that potato! @unplugged
77

88
In this game, you will start a timer with a random countdown of a number of seconds. When the timer is off, the game is over and whoever is holding the potato has lost!
99
Watch the tutorial on the [MakeCode YouTube channel](https://youtu.be/xLEy1B_gWKY).

0 commit comments

Comments
 (0)