Skip to the content.

reaction time

Reaction time MicroCode program

This is a 2 player game that tests your reaction time. In this game, both player wait for a signal (screen image, sound) to press the button. The fastest player that presses the button after wins the round. You loose if you press before.

This program uses 4 pages:

page 1 page 1

Reaction time page 1 MicroCode program

This is the page where players see a “loader animation” and wait for the signal.

loader animation rule

After 5s + 5 random seconds, we switch to page 2.

timer to play rule

If any player presses A early, we transition to page 4 since player B won.

false start rule for A rule

Same for the button B

false start rule for B rule

page 2 page 2

Reaction time page 2 MicroCode program

This is the active game page where players have to react as fast as possible.

Players receive the signal as LEDs on and a sound.

when started, turn on all LEDs

when started, play hello

Then we add rules to switch pages on button press, but unlike page 1, pressing means you win!

when press A, switch to page 3

when press B, switch to page 4

page 3 page 3

Player A victory page.

page 3 player A victory

The page shows an animation showing left arrows.

when started, show arrow animation and repeat

And the game restart after 5 seconds.

when timer 5s, switch to page 1

page 4 page 4

Player B victory page, similar to page 3.

page 4 player B victory

improvement ideas

See Also