PIPER MAKE EDUCATOR RESOURCES SERIES
CHECK OUT THE BUILD:
- Build a head-to-head game of skill and code a script to select a winner based on who hits their button fastest when a light comes on.
- Understand how random values can be assigned to a variable.
- Play the game with a friend to test who has the fastest reflexes!
You can share the mission directly to your Google Classroom after logging into your Google educator account in the top right corner of Piper Make.
Useful vocabulary terms to use in classroom: binary state, variable, random number
Button press not registering?
Take a look at the Digital View when you press the button while the code is running. If no change is seen, then push the button into the breadboard forcefully (but carefully) to make sure the leads are connecting with the rails of the breadboard.
Not sure what "LOW when pulled UP" means?
This generally refers to pull-up or pull down resistor circuits. Read more about those here. In this case, this allows the signal to be to be rounded UP to the binary TRUE when the button is pushed and the circuit is complete.
In this lesson, students will build these two buttons with an LED that lights up at a random time point specified in the code.