The following are some questions related to this project along with some suggested code challenges. The idea is to provoke thought, test your understanding, and get you coding!
While the sketches provided in this guide work, there is room for improvement and additional features. Have fun playing with the provided code to see what you can do with it. Or do something new and exciting!
- What is the maximum length (in number of notes) of the game for the provided sketch?
- Why is a
delay(2000)added to the end of the loop? (hint: read the code comment)