05 35 minutes
Reaction game
Measuring milliseconds, catching cheats, and printing a score

Mission goal: Build a reaction timer: press to start, wait a random 1.5 to 4 seconds, and measure how fast you press when the light appears. Catch false starts.
Section 1
Understand
New ideas
- ticks_ms and ticks_diff for safe timing
- Random numbers so the game cannot be learned
- Waiting for release, plus a debounce delay
- Detecting a false start while still waiting
- 1Wait a random time, light up, then time your press.
- 2ticks_diff measures the milliseconds safely.
- 3Pressing early is caught: "Too soon!"
Safety first
- No wiring changes, so nothing new to get wrong. Still check your legs are seated before plugging in.
- Do not hammer the button. It is a small mechanical part and you want it to survive Mission 11.