Migrate docs from the other repo
This commit is contained in:
30
docs/lessons/spinner/challenges.md
Normal file
30
docs/lessons/spinner/challenges.md
Normal file
@ -0,0 +1,30 @@
|
||||
# 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:
|
||||
|
||||

|
||||
|
||||
### Challenge 1
|
||||
|
||||
Modify the random number generator so that it can include new arrows we will create in the next challenge.
|
||||
|
||||

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

|
||||
|
||||
* Run your code to see if it works as expected
|
||||
|
||||
### Challenge 3
|
||||
|
||||
Add some other arrows if there are more than 8 players.
|
||||
|
Reference in New Issue
Block a user