Test your timing precision!
A reaction and timing game built with React + Vite.
Stop the timer as close as possible to the target time to maximize your score. The closer you are, the higher your points!
- 4 progressive difficulty levels:
- Easy → 1 second
- Not Easy → 5 seconds
- Getting Tough → 10 seconds
- Pros Only → 15 seconds
- Smart scoring system based on how close you stop to the target time
- Modern and clean UI with cyan gradients
- Attractive result modal
- Precise timer management using
useRefanduseEffect - Fully responsive design
- React 18 (Hooks, Portals)
- Vite — Blazing fast build tool
- JavaScript (ES6+)
- Modern CSS (Flexbox & Gradients)
- Node.js (v18 or higher)
- npm or yarn
- https://github.com/BlaiseTAPPA/Timer-Challenge.git
- cd timer-challenge
npm install
npm run dev
- npm run build
- npm run preview
├── public
│ └── vite.svg
├── src
│ ├── assets
│ │ └── react.svg
│ ├── components
│ │ ├── Player.jsx
│ │ ├── ResultModal.jsx
│ │ └── TimerChallenge.jsx
│ ├── App.jsx
│ ├── index.css
│ └── main.jsx
├── .gitignore
├── index.html
├── package-lock.json
├── package.json
└── vite.config.js
- Choose a difficulty level from the four cards
- Click "Start Challenge"
- Click the button again when you think you've reached the target time
- View your score and accuracy in the result modal
The higher the difficulty, the greater the challenge!
Your score is calculated based on the difference between the stopped time and the target time. The closer you are to the target, the higher your score.
- Accurate timer handling without memory leaks
- Clean usage of useRef, useState, and useEffect
- Modal implemented with createPortal
- Well-structured and modular code
- Smooth and modern user interface
- Local leaderboard using localStorage
- Sound effects and advanced animations
- Dark / Light theme toggle
- Persistent high scores
- Internationalization (i18n)
- Multiplayer mode
This project is licensed under the MIT License.