Skip to content

Latest commit

 

History

History
103 lines (62 loc) · 5.75 KB

File metadata and controls

103 lines (62 loc) · 5.75 KB

Quiz machine

For this weekend weekend project we will create a quiz app. Please implement features from the set below.

You are welcome to build the application using just React or use Redux as well. See Redux getting started guide at the end.

We will be using Open Trivia Database database to obtain questions. You can load random questions, one at a time from https://opentdb.com/api.php?amount=1&type=multiple. The API returns both true/false questions as well as multiple choice. We will use multiple choice by default.

The question received from the API will have a structure similar to below and provide a correct answer as well as several incorrect answers.

{
  "response_code":0,
  "results":[
    {
      "category":"Entertainment: Video Games",
      "type":"multiple",
      "difficulty":"medium",
      "question":"Which of these characters was almost added into Super Smash Bros. Melee, but not included as the game was too far in development?",
      "correct_answer":"Solid Snake",
      "incorrect_answers":[
        "Pit",
        "Meta Knight",
        "R.O.B."
      ]
    }
  ]
}

See https://opentdb.com/api_config.php for more info on the API.

Instructions

Stretch goals - feel free to pick

  • Allow user to select question category
  • Add some unit tests
  • Display statistics about player performance such as total questions played, average score, most popular category, category with highest percentage of correct etc.

  • Allow both true/false and multiple choice questions to be played.

  • Implement an extension of your choice.

Additional info

  • Document your solution in a README.md
  • Make frequent commits
  • Create a pull request at the end