Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLITriviaBeast

A CLI-based trivia game to demonstrate foundational JavaScript concepts, such as handling user input, managing program flow, working with arrays and objects, and building interactive terminal-based applications.

Installation

  1. Clone the repository:
git clone https://github.com/ProfPoak/CLITriviaBeast.git
cd CLITriviaBeast
  1. Install dependencies:
npm install

How to Play

Option 1: Run with Node (Direct)

node bin/index.js

Option 2: Link as a Global Command

Make the script executable:

chmod +x bin/index.js

Link the package globally:

npm link

Then run the game from anywhere:

TriviaBeast

Game Rules

  • Answer trivia questions within the time limit
  • You have 10 seconds per question
  • Get feedback on whether your answer is correct
  • Your final score displays at the end
  • Play as many rounds as you'd like

Features

  • 5 trivia questions with multiple choice answers
  • Timed questions
  • Total game time
  • Score tracking

About

A CLI-based trivia game to demonstrate foundational JavaScript concepts, such as handling user input, managing program flow, working with arrays and objects, and building interactive terminal-based applications.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages