commitra/react-verse

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

开放

#115 创建于 2025年10月23日

 (1 条评论) (0 个反应) (1 位负责人)JavaScript (34 个派生)auto 404
hacktoberfest

仓库指标

星标
 (8 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南