Sarayu's Create Task Planning - sarayu-pr11/team-narks GitHub Wiki

Sarayu's Create Task

My create task will be a trivia game where users can pick a category and play trivia questions that fall under that. I hope to deploy the game so that a user can play it on a website rather than a terminal. I will be using a database to store my questions and then convert them to an API that randomly generated questions for the user to answer.

Requirements

The requirements for the create task code include those below and this is how my create task will implement these requirements.

  • Data abstraction *
  • a library that gets called in order to store all my questions rather than hard coding every single one
  • I would call the library in another piece of code so that it is usable in my code
  • Lists that manage complexity = I would make lists with each of the categories and subtopics for the questions so that they can easily be organized when compiled

  • Procedural Abstraction *

  • I would make many functions but one specific one would be on click function so that when the user clicks the right answer, they would get points and also would advance on to the next questions. Some parameters that I would put on this function would be an if-then statement to make sure only the right answer was chosen, how many tries it took them, and how many points they would receive
  • this function would be called when the buttons in the game for the answer choices are clicked
  • another function would have the parameter that when the user types in the difficulty they want, the function will return the difficult they want stand that is what level they'll play on
  • Algorithm Implementation *
  • I would include many algorithms that include: sequencing: the next question can only appear after the first one is done selection: would be used when seeing the minimum amount of attempts it took the user to complete the problem iteration: the user would receive questions of the same difficulty and category until they got the answer correct