This is a simple game built with React. The game challenges players to estimate the passage of time. The player starts a timer and tries to stop it as close as possible to a target time. The closer the player is to the target time, the higher their score.
Player
: This component allows the player to set their name.TimerChallenge
: This component represents a single challenge or level in the game. Each challenge has a different target time.ResultModal
: This component displays the result of a challenge, including the player's score.
- Enter your name in the Player input field and click Set Name.
- Click Start on a TimerChallenge to start the timer.
- Click Stop when you estimate the target time has passed.
- The ResultModal will display your score for the challenge.