Fun Task Spinning Wheel
Challenge: Create a Fun Task Spinning Wheel on the Art Canvas + Playground! The object of the activity is to develop an algorithm to randomly select a task from a task list and code the VR Robot to draw a line from the center point to the corresponding task section on the Spinning Wheel to indicate the selected task. Print the selected task to the Print Console.
The task list and the Drivetrain Heading list for the robot to drive from the center point to each task section on the Spinning Wheel are as follows:
|
No. |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
|---|---|---|---|---|---|---|---|---|
|
Task |
Jump 30 times |
Turn off your ipad |
Make a silly face |
Mop the floor |
Eat a hotdog |
Wash the dishes |
Run outside |
Say hi to 3 people |
|
Drivetrain Heading |
22.5° |
67.5° |
112.5° |
157.5° |
202.5° |
247.5° |
292.5° |
337.5° |
- Download the Fun Task Spinning Wheel activity image as a PNG file from this Google slideshow.
- To learn more about downloading .png files from slideshows, see this article.
- Select the Art Canvas+ Playground and upload the Fun Task Spinning Wheel activity image.
- To learn more about uploading images to the Art Canvas+ Playground, see this article.
- Declare a list to store the Drivetrain Heading data for the robot to drive from the center point to each task section on the Spinning Wheel.
- Declare a list to store the eight tasks on the Spinning Wheel. (Python only)
- Use the pick random block to randomly select a task number between 1 and 8. Declare a variable to store the selected task number.
- Code the VR Robot to draw a line from the center point to the selected task section on the Spinning Wheel.
- Use the selected task number as the index of an item in the list to retrieve the corresponding Drivetrain Heading value. Use the [Turn to heading] block to code the VR Robot to turn in the desired direction.
- Code the VR Robot to draw a line from the center point to the task section using [Drive for] and the VR Pen blocks.
- Use the selected task number to determine the task content. Use the [print] block to print the task content to the Print Console.
- Monitor the list value in the Monitor Console.
- Play the Fun Task Spinning Wheel with a friend. Have fun!
Helpful Hints
- Randomly select a task number between 1 and 8. To make the robot turn in the desired direction on the Spinning Wheel, use the selected task number as the index of an item in the list to retrieve the corresponding Drivetrain Heading value, which will dictate the direction the robot needs to turn in.