REACTION GAME
PIPER MAKE EDUCATOR RESOURCES SERIES
STARTER EXPEDITION KIT
BUILD AND CODE A GAME TO TEST YOUR REFLEXES
Intermediate
1 hr
Ages 8+
You will need a Starter Kit to do this mission. Get yours here:
CHECK OUT THE BUILD:
LEARNING OBJECTIVES
- 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!
EDUCATOR RESOURCES
-
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.
Check out our easy assignment template that you can use to ask students to share their work by including pictures of their final circuits and code.
Check out our Python-focused assessment that you can copy and share directly to your Google Classroom.
-
Useful vocabulary terms to use in classroom: binary state, variable, random number
TROUBLESHOOTING TIPS
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.
FINAL HARDWARE
In this lesson, students will build these two buttons with an LED that lights up at a random time point specified in the code.
FINAL CODE
This is the final code that is created. Download the embedded PNG and use the CREATIVE mode to import it to a new workspace: