Skip to content

phillsatellite/CLITriviaGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a CLI Trivia Game I've created for a school project using JavaScript.

  • After cloning repo do npm install.
  • To open the game use npm start.
  • User should be directed to a Main Menu that includes options to Start Game, See Stats, Reset Stats and Quit.
  • The user will be given 10 seconds to answer each question. After each question the timer should reset back to 10. A timer will appear in yellow text.
  • If the answer is correct the text "Correct!" should appear in green text.
  • If the answer is incorrect the text "Incorrect!" should appear in red text.
  • If the user doesn't answer within the time limit then a message "Opps! Out of time!" should appear in red text.
  • After the user completes the game a message "You've completed the game!" and be given the option to return to the main menu.
  • Afterwards user should be able to navigate to See Stats and ui should display "Correct: #" in green text, "Incorrect: #" in red text, and unanswered in "yellow".
  • When the user navigates to the reset stats page and selects "Reset Stats" a success message should appear "Game stats have been reset".
  • After user has finished they should be able to exit the game by navigating to "Quit" and pressing enter.

About

This is a CLI Trivia Game that I've created for a school project.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors