Multiple Choice Addition Game

Multiple Choice Addition Game

Question 1 of 10

Score: 0 / 10

Whats New

Progress Indicator

A progress bar or a “Question X of 10” label can provide better clarity on game progress.

Accessibility Improvements:

aria-live="polite" added to the score and status elements for screen reader updates.

Replaced div answer options with button elements, making them more accessible.

Prevent Negative Answer Options:

Improved the logic to prevent negative numbers and duplicate correct answers.

Improved User Interaction:

Options are now disabled after selection to prevent multiple clicks.

Uses setTimeout(() => generateQuestion(), 1000) for a clearer syntax.

Extra 2-second delay before moving to the next question when a wrong answer is selected.