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 sketch provided in this guide works, there is room for improvement and additional features. Have fun playing with the provided code to see what you can do with it.


  • Does it matter which order the functions leftButton() and rightButton() are called in?
  • Can you think of a way to cheat the countdown timer? (hint: seed)

Code Challenges

  • Put the code that does the random seeding into a function called initRandom().
  • Change the color of the NeoPixels for the countdown.
  • Come up with a different way to start a new game, instead of using reset button.

This guide was first published on Dec 29, 2016. It was last updated on Mar 08, 2024.

This page (Questions and Code Challenges) was last updated on Dec 09, 2016.

Text editor powered by tinymce.