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)

Code Challenges

  • Change the melody that is played during the game.
  • Make the NeoPixels do something different during game play.
  • Use the accelerometer to check how 'softly' players are catching the egg. If they catch it too hard, they 'break' the egg and the game is over.

This guide was first published on Apr 05, 2017. It was last updated on Mar 08, 2024.

This page (Questions and Code Challenges) was last updated on Apr 05, 2017.

Text editor powered by tinymce.