/TriviaGame

Primary LanguageJavaScript

TriviaGame

  • Shows only one question until the player answers it or time runs out.

  • If the the correct answer selected, shows a screen congratulating for choosing the right option. After a few seconds, displays the next question.

  • The scenario is similar for wrong answers and time-outs.

    • If time runs out, shows that time's up and displays the correct answer. Waits a few seconds, then shows the next question.
    • If the wrong answer is chosen, shows that the wrong option was selected and then displays the correct answer. Waits a few seconds, then shows the next question.
  • On the final screen, shows the number of correct answers, incorrect answers, and an option to restart the game (without reloading the page).