pxt-calliope/docs/lessons/spinner/quiz.md

29 lines
808 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# spinner quiz
a spin the BBC micro:bit game with the input on shake #math #random #docs #shake
## Name
## Directions
2016-03-31 01:10:27 +02:00
Use this activity document to guide your work in the [spinner tutorial](/microbit/lessons/spinner/activity).
2016-03-26 00:47:20 +01:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. Write the code that stores a random number between 0 and 3 into a local variable named 'random arrow'.
<br/>
## 2. Write the if statement that will display this down arrow from your code. Hint- This occurs if the local variable 'random arrow' returns 1.
![](/static/mb/lessons/spinner-0.png)
<br/>
## 3. Write the if statement that will display this right arrow. Hint- This occurs if the local variable 'random arrow' returns 2.
![](/static/mb/lessons/spinner-1.png)
<br />