commitra/react-verse

Trivia.jsx : Add Timer per Question + Bonus Points for Speed

オープン

#115 opened on 2025/10/23

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (34 件のフォーク)auto 404
hacktoberfest

Repository metrics

Stars
 (8 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Implement a timer per question to make the quiz more challenging and engaging. Players earn bonus points for answering quickly within the time limit.

Acceptance Criteria:

Add a countdown timer (e.g., 15 seconds per question).

If the timer reaches 0, automatically lock the question and move to the next one.

Award extra points for answering before half of the time runs out.

Display remaining time visually (progress bar or countdown number).

Bonus: Persist the timer visually using React state and ensure it resets when moving to the next question.

コントリビューターガイド