31 lines
771 B
Markdown
31 lines
771 B
Markdown
# 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.
|
|
|