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

31 lines
771 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# spinner challenges
Create an arrow that randomly points to a player.
## Before we get started
Complete the following [guided tutorial](/microbit/lessons/spinner/activity), your code should look like this:
![](/static/mb/blocks/lessons/spinner-3.jpg)
### Challenge 1
Modify the random number generator so that it can include new arrows we will create in the next challenge.
![](/static/mb/blocks/lessons/spinner-4.jpg)
* Do **not** run the code yet because it will not work until you have conditions for every random number.
### Challenge 2
Let's add four more arrows that point diagonally.
![](/static/mb/blocks/lessons/spinner-5.jpg)
* Run your code to see if it works as expected
### Challenge 3
Add some other arrows if there are more than 8 players.