pxt-calliope/olddocs/lessons/spinner/quiz.md
Tom Ball f4eca66648 move lessons out of web site
will move select lessons back to "educators" section
2016-06-14 11:49:58 -04:00

773 B

spinner quiz

a spin the BBC micro:bit game with the input on shake.

Name

Directions

Use this activity document to guide your work in the spinner tutorial.

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'.


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.


3. Write the if statement that will display this right arrow. Hint- This occurs if the local variable 'random arrow' returns 2.