A simple and interactive Reaction Time Game built using HTML, CSS, and JavaScript. The game measures how quickly you react when the screen changes from red to green.
- ๐ฎ Click anywhere or press the Space key to play
- โณ Random waiting time before the signal appears
- โก Measures your reaction time in milliseconds
- ๐ Keeps track of your best score
- ๐ Displays your most recent score
- ๐จ Detects early clicks and asks you to try again
- ๐ฑ Simple and responsive interface
When the game starts:
- Blue Screen: Ready to start
- Red Screen: Wait...
- Green Screen: Click as fast as possible!
- Result Screen: Displays your reaction time and best score.
- HTML5
- CSS3
- JavaScript (ES6)
- Download or clone this repository.
git clone https://github.com/your-username/reaction-time-game.git
-
Open the project folder.
-
Double-click index.html
or
Open it using Live Server in Visual Studio Code.
- Click anywhere on the screen or press the Space key.
- The screen will turn red.
- Wait until it turns green.
- As soon as it turns green, click immediately or press Space.
- Your reaction time will be displayed.
- Try to beat your best score!