Submitted by: Aaryaa Moharir
Triva is an app that utilizes the Open Trivia API to generate a list of trivia questions to ask the user. The user answers 10 questions of random categories and gets Time spent: 6 hours spent in total
The following required functionality is completed:
- User can view and answer at least 5 trivia questions.
- App retrieves question data from the Open Trivia Database API.
- Fetch a different set of questions if the user indicates they would like to reset the game.
- Users can see score after submitting all questions.
- True or False questions only have two options.
The following optional features are implemented:
- Allow the user to choose a specific category of questions.
- Provide the user feedback on whether each question was correct before navigating to the next.
The following additional features are implemented:
- changed the input from the API to get rid of most of the HTML text in the label
https://www.loom.com/share/cf7477ab8fa54e07a0ccb6b5c3315f6e?sid=15873687-adeb-4d13-a7aa-96935a9c3a65
I struggled with getting the information from the API and convrting it to a format that was compatible with the code from the previous lab. I originally had string arrays and couldn't just store the questions in them as their type wasn't the same.
Copyright 2024 Aaryaa Moharir
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.