pxt-microbit Accessibility PR (#529)

* Accessibility changes
This commit is contained in:
Sam El-Husseini
2017-09-07 13:42:08 -07:00
committed by GitHub
parent 3f87576a50
commit e3975e65e5
357 changed files with 1641 additions and 3540 deletions

View File

@ -2,13 +2,13 @@
A multi-player game that forces each player to reveal a secret or something funny.
### ~avatar avatar
## ~avatar avatar
Welcome! This tutorial will teach how to program a game of truth or dare on the @boardname@. Let's get started!
### ~
## ~
Begin by using Show LEDs to create an "up-arrow" image, which will point to someone.
@ -90,9 +90,9 @@ input.onButtonPressed(Button.A, () => {
* Run your program: Press button A!
### ~avatar avatar
## ~avatar avatar
Excellent, you're ready to continue with the [challenges](/lessons/truth-or-dare/challenges)!
### ~
## ~

View File

@ -32,7 +32,7 @@ input.onButtonPressed(Button.A, () => {
})
```
### Challenge 1
## Challenge 1
Let's make the word "DARE" appear a little more often than "TRUTH". Change the line of code with `pick random (1)` to `pick random (2)`.
@ -62,7 +62,7 @@ input.onButtonPressed(Button.A, () => {
```
### Challenge 2
## Challenge 2
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.
@ -98,7 +98,7 @@ input.onButtonPressed(Button.A, () => {
* Run your code to see if it works as expected
### Challenge 3
## Challenge 3
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

@ -1,6 +1,6 @@
# truth or dare tutorial
### ~avatar avatar
## ~avatar avatar
@ -8,9 +8,9 @@ The *Truth or dare!* game works as follows: a player spins the @boardname@ on th
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*.
### ~
## ~
### Rebuild the game!
## Rebuild the game!
The blocks have been shuffled! Put them back together so that...
* an up arrow is displayed when the @boardname@ is powered on.
@ -42,7 +42,7 @@ input.onButtonPressed(Button.A, () => {
`)
})
```
### Hints and tips
## Hints and tips
Cut out these documentation cards to help you!
```cards