2016-03-25 16:47:20 -07:00
|
|
|
# spinner quiz
|
|
|
|
|
2016-11-01 10:42:42 -07:00
|
|
|
a spin the @boardname@ game with the input on shake.
|
2016-03-25 16:47:20 -07:00
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 08:27:45 -07:00
|
|
|
Use this activity document to guide your work in the [spinner tutorial](/lessons/spinner/activity).
|
2016-03-25 16:47:20 -07: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.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 3. Write the if statement that will display this right arrow. Hint- This occurs if the local variable 'random arrow' returns 2.
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
<br />
|
|
|
|
|