Overview

Our game is a jeapordy and we have 7 questions per section. The sections are math, Comp Sci, Literature, Sports, Ireland, Video Games, and Science. We want to replicate this like a typical jeapordy game, whoever answers the question right gets to choose a section, if they get it wrong they lose points etc. We also are trying to incorporate external factors that impact score such as speed and answer streak.

Program Purpose and Function:

The purpose of our Jeopardy spin-off project is mostly for entertainment. As for input or output, we could make the questions and have the user input the answers, then depending on whether the question was answered correctly along with other parameters (possibly time or an answer streak), the output is the given answer, whether it was correct or incorrect, the correct answer (if incorrect), and points. The way this would function is it would store the inputted answer into a variable and compare it to a variable where the correct answer is stored # Data Abstraction: A list will be used to store the possible categories of questions and/or the buttons to the corresponding questions. This is given that we plan on making more question categories than will be displayed in each game. A list will also be used for the questions and the possible correct answers. - A question list will be made in the following manner: -QuestionList = [{“category”: “general”, “question”: “Zoophobia is the fear of __”, “answer”: “Animals”}, {“category”: “general”, “question”: “Pierre Augustine Caron de Baumarchais play what Opera based on it”, “answer”: “Barber Of Seville”}, {“category”: “general”, “question”: “Hang on Sloopy’ was the official rock song of which band”, “answer”: “Ohio”}, {“category”: “general”, “question”: “When is turkey traditionally eaten in america”, “answer”: “Thanksgiving”}, {“category”: “general”, “question”: “What was mozart’s first name”, “answer”: “Wolfgang”}, {“category”: “general”, “question”: “In the film ‘titanic’, who did leonardo dicaprio and kate winslet play”, “answer”: “Jack”}, {“category”: “general”, “question”: “What was founded in the UK 1694 because of war with France”, “answer”: “Bank Of England”}]

Managing Complexity:

Given the number of questions and number of correct answers (including potential alternates such as 4 and four and Four), configuring variables for each question and each answer is possible but impractical. Perhaps we could

Procedural Abstraction:

A function will be developed with the forementioned loop in (5). Other than the loop, it will display the categories on the top row of the table of questions and put the contents of the questions on separate screens which will be accessed when the question’s corresponding buttons are pressed.

Algorithm Implementation:

A loop will be used to cycle each category, and the access method to each question so that the question can be displayed when a corresponding space in a table is clicked.

Testing:

The first call of the function would be to populate the table of questions on the main page with access methods to the questions. The second call will populate the separate screens with the questions. In addition, there will also be print() statements in the code (ex: print which categories of questions were selected for the game, which question was selected, etc.) in case of bugs


Example of Question List for one of the sections:

Example Math Qs:

  1. This Greek mathmetician supposedly designed a system of mirrors to set enemy ships on fire.
    • Archimedes
  2. The sum of the first three digits of this irrational number is equal to the third power of one less than the first digit.
    • pi
  3. This German mathematician famously feuded with Isaac Newton over which of them created calculus
    • Gottfried Wilhem Leibniz
  4. It isn’t pi, but this Greek letter is commonly used to denote change
    • delta
  5. This type of sum is named after a mathematician who specialized in geometry
    • Rienmann
  6. Nobel Prize winner and game theorist John Nash famously suffered from this mental disorder throughout his life
    • schizophrenia
  7. A type of ratio, this metal is known for its softness and luster.
    • Gold