Recall & Review
beginner
What is the main goal of a reaction time game?
The main goal is to measure how quickly a player responds to a visual or audio signal by pressing a button or key as fast as possible.
Click to reveal answer
beginner
Which Raspberry Pi component is commonly used to detect player input in a reaction time game?
A button connected to the GPIO pins is commonly used to detect when the player presses it to record their reaction time.
Click to reveal answer
intermediate
Why do we use a random delay before showing the signal in a reaction time game?
A random delay prevents the player from predicting when the signal will appear, ensuring the reaction time is genuine and not guessed.
Click to reveal answer
intermediate
How can you measure the reaction time in a Raspberry Pi reaction time game?
By recording the time when the signal appears and the time when the player presses the button, then subtracting the two times to get the reaction duration.
Click to reveal answer
beginner
What Python module can be used to handle time delays and measure time intervals in a reaction time game?
The 'time' module is used for delays (time.sleep) and to get the current time (time.time) to measure reaction intervals.
Click to reveal answer
What is the purpose of using GPIO pins in a Raspberry Pi reaction time game?
✗ Incorrect
GPIO pins allow hardware components like buttons to connect and send signals to the Raspberry Pi.
Why should the delay before the signal be random in a reaction time game?
✗ Incorrect
Random delay stops players from anticipating the signal, ensuring true reaction measurement.
Which Python function can pause the program for a set amount of time?
✗ Incorrect
time.sleep() pauses the program for the specified seconds.
How do you calculate reaction time in a reaction time game?
✗ Incorrect
Reaction time = button press time - signal time.
What is a good way to give feedback to the player after they press the button?
✗ Incorrect
Showing reaction time helps players see how fast they reacted.
Explain how you would build a simple reaction time game on a Raspberry Pi using a button and Python.
Think about hardware setup, timing, and user feedback.
You got /7 concepts.
Describe why randomness is important in a reaction time game and how you would implement it in Python.
Consider how predictable signals affect player response.
You got /4 concepts.