inserting macros instead of hard coded board names
This commit is contained in:
@ -121,7 +121,7 @@ input.onGesture(Gesture.Shake, () => {
|
||||
|
||||
### Challenge 2
|
||||
|
||||
Let's make a trick dice! Modify the line of code with `pick random` so that only numbers 3-6 can appear on the dice. Also note that we need to ensure `roll = 0` when only 1 dot is shown on the BBC micro:bit.
|
||||
Let's make a trick dice! Modify the line of code with `pick random` so that only numbers 3-6 can appear on the dice. Also note that we need to ensure `roll = 0` when only 1 dot is shown on the @boardname@.
|
||||
|
||||
```blocks
|
||||
input.onGesture(Gesture.Shake, () => {
|
||||
@ -179,5 +179,5 @@ input.onGesture(Gesture.Shake, () => {
|
||||
|
||||
### Challenge 3
|
||||
|
||||
Add a couple more conditions so that the BBC micro:bit randomly chooses a number between 1 and 8.
|
||||
Add a couple more conditions so that the @boardname@ randomly chooses a number between 1 and 8.
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# dice roll quiz answers
|
||||
|
||||
Create a dice when the BBC micro:bit is shaken
|
||||
Create a dice when the @boardname@ is shaken
|
||||
|
||||
These are the answers to the [dice roll quiz](/lessons/dice-roll/quiz).
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
# dice roll quiz
|
||||
|
||||
Create a dice when the BBC micro:bit is shaken
|
||||
Create a dice when the @boardname@ is shaken
|
||||
|
||||
## Name
|
||||
|
||||
|
Reference in New Issue
Block a user