Skip to content

barryam3/trivia

Repository files navigation

Trivia

by Barry McNamara (barryam3@alum.mit.edu)

About

This app is designed as a tool to play Jeopardy-style trivia games in real life. It displays questions and tracks scores, but it is not intended to be an online game in itself.

Running the App

  1. clone the repo
  2. install dependencies (npm i)
  3. npm run build
  4. npm start
  5. app should be live at localhost:3000

Using the App

Disclaimer: This app was created solely for personal use by its creator. Ease of use has occasionally been sacrificed in favor of ease of implementation, leading to some things being less intuitive than they would be if this app had been designed with distribution in mind. The app also may have bugs, like any application you download from the internet.

  1. Head to localhost:3000/init to create a game. Uid is a unique identifier for your game which will be used in the url. Contestant names is a list of names separated by commas. For the other three boxes, copy in the text from the files in the folder q_and_a (or pass in your own text in the same format--open the file in Excel and edit it).
  2. The pages localhost:3000/game/{uid}/1?leader=true and localhost:3000/game/{uid}/1 will automatically open replacing the {uid} with the uid you chose. The leader page allows you to click between questions and change the display. The follower page automatically updates based on the actions taken in the leader.

Input Format

The expected format for the Jeopardy and Double Jeopardy rounds is a CSV file.

Category1,Category2
Cat1Question1,Cat2Question2
Cat1Answer1,Cat2Answer1

Daily Doubles

Daily Doubles are questions prefixed by [DD]: .

Media

Links to image, audio, and video files are automatically detected by their file extensions. These create multi-part questions, where text is displayed before and/or after the media.

Fonts

This app is intended to be used with the Korinna and "Swiss 921 BT" fonts. However, the font is not included as I do not have the right to distribute it. Backup fonts are defined in case you do not have the font installed.

About the Questions

Questions are included for demonstration purposes. These questions were written by myself (Barry McNamara) for a trivia game I ran with some friends using this app, which went rather well. They are fairly general and high-quality (if I do say so myself), but I make no guarantees that they are now or will remain accurate. Feel free to use this app and my questions for whatever you like, just credit me. If you have a good time, I'd love to hear about it.

Jeopardy on TV is a game of Answers and Questions i.e. the host says "The first USn President" and the contestant says "Who's Washington?" This app uses Questions and Answers terminology i.e. the strings called questions are displayed before the strings called answers. But there's no restrictions on the text, just "The first US President" would be the "question" and "Who's Washington" would be the "answer."

Development

Use npm run dev to host the app at localhost:3000 with live updating when you edit the frontend.

About

A tool for playing Jeopardy-style trivia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published