As you work through this challenge page, you will learn some techniques for putting some structure into your program so that you can come up with a longer dance routine. You will learn about:
- the Loop block
- nested Loop blocks
- My Blocks
How can you program a robot to repeat a sequence of moves?
1. Loops and My Blocks tutorial
2. Try it for yourself
Once you’ve watched the tutorial, have a go at creating some of your own My Blocks as well as some simple dance moves that use a Loop.
Note that you can set a Loop to either repeat forever, stop after a number of times (count) or for an amount of time.
Feel free to experiment with the Move block duration settings.
Finally, take a screenshot of your dance routine and add it to your team journal (use the Add Media button at the top of the screen when you’re editing your post).
Next: The great dance off!