Reaction Game
Reaction Game
You have to design the circuit and code for a game with the following specifications in
TinkerCad (https://www.tinkercad.com/) :
It is a competitive two-player game designed to test and improve your reaction time. This game
incorporates a breadboard setup, a programmable microcontroller (Arduino Uno), and various
electronic components to create an engaging and interactive experience.
Game Setup:
At the heart of the game board lies the microcontroller, flanked by a single green LED, which
serves as the signal for action. Each player has a dedicated button. An I2C LCD display is
positioned on the breadboard's center to register their scores. The game is a race to 5 points—
the first player to reach this score triggers a celebratory sound, and the screen declares that
player the winner.
How to Play:
To initiate or restart the game, a player must perform a long press on their button for 5 seconds,
which resets both scores to zero. The game begins with the green LED turned off. Anticipation
builds as players wait for a long beep that signals them to prepare. Subsequently, within a
random timeframe of 1 to 15 seconds, the green LED lights up, prompting players to hit their
button as fast as possible.
Scoring:
The quickest to react presses their button, illuminating their score on the LCD display. If a player
jumps the gun and presses their button before the green light activates, they commit a 'false
start,' and their opponent is automatically awarded the point for that round.
Subsequent Rounds:
After a short interlude marked by another buzzer sound, the green LED is extinguished, and the
tension resets. The unpredictable wait time between 1 to 15 seconds resumes before the green
LED lights up once more, signaling the next chance to score.