inserting macros instead of hard coded board names
This commit is contained in:
@ -23,7 +23,7 @@ basic.showLeds(`
|
||||
|
||||
```
|
||||
|
||||
Now let's create a condition to know when button `A` is pressed so that we can display "truth" or "dare" on the micro:bit. We want the BBC micro:bit to randomly choose whether to display "truth" or display "dare". We can use accomplish this by using `pick random (1)`.
|
||||
Now let's create a condition to know when button `A` is pressed so that we can display "truth" or "dare" on the micro:bit. We want the @boardname@ to randomly choose whether to display "truth" or display "dare". We can use accomplish this by using `pick random (1)`.
|
||||
|
||||
```blocks
|
||||
basic.showLeds(`
|
||||
|
@ -10,7 +10,7 @@ This is the answer key for the [truth or dare quiz](/lessons/truth-or-dare/quiz)
|
||||
let random = Math.random(4)
|
||||
```
|
||||
|
||||
## 2. Write an if statement that will display the message "TRUTH" on the BBC micro:bit if the local variable 'random' equals 0.
|
||||
## 2. Write an if statement that will display the message "TRUTH" on the @boardname@ if the local variable 'random' equals 0.
|
||||
|
||||
```blocks
|
||||
let random = Math.random(4)
|
||||
|
@ -16,7 +16,7 @@ Answer the questions while completing the tutorial. Pay attention to the dialogu
|
||||
|
||||
<br/>
|
||||
|
||||
## 2. Write an if statement that will display the message "TRUTH" on the BBC micro:bit if the local variable 'random' equals 0.
|
||||
## 2. Write an if statement that will display the message "TRUTH" on the @boardname@ if the local variable 'random' equals 0.
|
||||
|
||||
<br/>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
|
||||
The *Truth or dare!* game works as follows: a player spins the BBC micro:bit on the table.
|
||||
The *Truth or dare!* game works as follows: a player spins the @boardname@ on the table.
|
||||
When the micro:bit stops spinning, the player pointed by the arrow (displayed on screen) must press the button "A"
|
||||
to see if she has to provide a *truth* or a *dare*.
|
||||
|
||||
|
Reference in New Issue
Block a user