rename micro:bit to @boardname@

This commit is contained in:
Peli de Halleux
2016-11-01 17:44:37 -07:00
parent 9bc1e38345
commit 89406330cf
226 changed files with 697 additions and 750 deletions

View File

@ -6,7 +6,7 @@ A multi-player game that forces each player to reveal a secret or something funn
Welcome! This tutorial will teach how to program a game of truth or dare on the micro:bit. Let's get started!
Welcome! This tutorial will teach how to program a game of truth or dare on the @boardname@. Let's get started!
### ~
@ -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 @boardname@ 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 @boardname@. 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(`

View File

@ -64,7 +64,7 @@ input.onButtonPressed(Button.A, () => {
### Challenge 2
Instead of just saying "TRUTH" or "DARE", let's sometimes say "SKIP". This would allow the skipped person to spin the micro:bit without completing a truth or dare. Modify the if statement as shown.
Instead of just saying "TRUTH" or "DARE", let's sometimes say "SKIP". This would allow the skipped person to spin the @boardname@ without completing a truth or dare. Modify the if statement as shown.
``` blocks
basic.showLeds(`
@ -100,5 +100,5 @@ input.onButtonPressed(Button.A, () => {
### Challenge 3
Add some other messages, such as "TWO DARES" for the micro:bit to show. You will need to modify the parameter inside `pick random (3)` as well as adding another `if` condition.
Add some other messages, such as "TWO DARES" for the @boardname@ to show. You will need to modify the parameter inside `pick random (3)` as well as adding another `if` condition.

View File

@ -5,7 +5,7 @@
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"
When the @boardname@ 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*.
### ~
@ -13,7 +13,7 @@ to see if she has to provide a *truth* or a *dare*.
### Rebuild the game!
The blocks have been shuffled! Put them back together so that...
* an up arrow is displayed when the micro:bit is powered on.
* an up arrow is displayed when the @boardname@ is powered on.
* on button `A` is pressed,
* randomly display "TRUTH" or "DARE" on the screen
* show the up arrow again.