Mindmap
Trivia Game - Copy
Inhalt der Mindmap
Trivia Game - Copy
Available Resources
- Hardware
- Laptop
- Access to resources
- Information
- Internet
- StackOverflow
- A community-based space to find and contribute answers to technical challenges
- W3Schools
- A freemium educational website for learning coding online
- JSON beautifiers
- Adds spaces to JSON data to make it more understandable
- StackOverflow
- Internet
- Laptop
- School resources
- Curriculum
- Technical proposal
- Software
- Python
- Modules
- flask
- Web framework for simple applications
- urllib
- Fetches URLs
- json
- Parses JSON strings and files containing JSON objects.
- random
- Implements pseudo-random number generators.
- flask
- Modules
- JSON
- APIs
- Open Trivia API
- Other APIs
- APIs
- HTML
- CSS
- Jinja
- Special placeholders in the template allow writing code similar to Python syntax.
- Python
- Hardware
Impacts
- Personal
- Data privacy principles
- APP1-13
- Data security
- No user data collected or stored
- All data stores are temporary
- Education
- Learning through quiz questions
- Useful in daily life and interaction
- Learning through quiz questions
- Health and wellbeing
- Challenges the mind
- Data privacy principles
- Social
- Education
- Culture
- Education about different cultures
- Communities
- Education about various communities, social groups and clubs
- Access to wealth, services and opportunities
- Access to new or improved knowledge and improved knowledge management
- Culture
- Education
- Economic
- Jobs
- People hired for maintenance
- Revenue
- Could advertise on the platform
- Jobs
- Personal
Ideation
- Data interface
- HTML template
- Jinja
- Displaying data
- {{data.category}}
- Using loops
- {% for answer in answers %}
- Using conditions
- {% if ns.current_pos == secret %}
- Uses namespace
- {% set ns = namespace(current_pos = 0,done=False) %}
- Setting variables
- {% set ns.current_pos = ns.current_pos + 1 %}
- Displaying data
- Jinja
- HTML template
- Data structure
- A means of organizing and storing data so that we can perform operations on the stored data more efficiently
- JSON
- Array with the name "results"
- Curly braces containing all data for one question
- Name and value pairs separated by commas
- Curly braces containing all data for one question
- Difficulty and category of questions decided by user through form
- Array with the name "results"
- Python
- Arrays
- categories, incorrect_answers and question_data
- Arrays
- Data specifications
- A guideline to ensure comprehensive and consistent data definition
- The attributes required to quantify data definition
- Dataset name
- categories
- All categories from Open Trivia API
- question_data
- All data for 10 questions from Open Trivia API
- incorrect_answers
- Incorrect answer(s) for one question from Open Trivia API
- categories
- Transmission frequency
- Once
- Transmission volume
- 2-4KB
- Transmission format
- JSON
- Transmission encryption
- None
- Data storage
- Arrays
- Data security
- None
- User interface
- Start page
- To choose trivia question category and difficulty
- Form
- Dropboxes
- Get categories from Open Trivia API to loop as options in category dropbox
- Submit button to POST form
- Dropboxes
- Form
- To choose trivia question category and difficulty
- Trivia game page
- Centre container
- Use while loop to allow game to accept true and false questions and answers
- while i < # of questions, append question[i] to incorrect_answers
- Fix answers boxes so that long answers don't overflow
- End game page
- Add a play again button
- Start page
- Data interface
Constraints
- Time
- 10 weeks
- Managed for Parts 1, 2 and 3
- Explore, develop, generate, evaluate
- 10 weeks
- Resources
- Open Trivia API
- Only 1 Category can be requested per API Call. To get questions from any category, don't specify a category.
- A Maximum of 50 Questions can be retrieved per call.
- Needs fast and stable internet connection.
- Open Trivia API
- Scope
- Context and criteria
- Re-develop a trivia game to use trivia questions from an open API data source instead of a local database
- Context and criteria
- Time
Criteria
- Prescribed
- Use trivia questions from an open API data source
- JSON data exchange language
- urllib python library
- GET data from url
- Open Trivia API
- Open API data source
- Remove local database
- Remove sqlite3 code
- Simulate the exchange of data between two digital systems
- Use a RESTful architectural pattern
- Use the JSON data exchange language
- Use an HTTPS communication protocol
- Exchange data with an API using URIs
- Use trivia questions from an open API data source
- Self-determined
- User interface
- Useability Principles
- Functionality
- Replay button
- Add a button to the endgame.html template
- Questions must be different for every replay
- Put initialising process in a startup function
- Getting the JSON document from with the URI from the API, reading it and placing the data in a variable.
- Choose trivia difficulty and category
- Create a start page for the game
- Same style as the others
- Add dropdowns for category and difficulty
- Use categories gotten from the API using a URI to fill the options of the category dropdown
- Add user input to the URI to fetch customised data
- Create a start page for the game
- Replay button
- User interface
- Prescribed
Requirements
- Functional
- File format
- .py, .json, .html, .css
- Data structure
- File format
- Non-functional
- Usability
- Learnability
- The user can immediately grasp how to interact with the interface
- Effectiveness
- How well the user interface helps the user
- Accessibility
- The ability to be used by different people
- Utility
- The system provides all necessary functionality
- Safety
- The ability for users to recover from mistakes
- Learnability
- Availability
- Work without internet/ with poor internet
- Local JSON document
- Work without internet/ with poor internet
- Maintainability
- Updates to Open Trivia API updates application
- Security
- Data Privacy Principles
- Usability
- Functional
Informationen
- Beschreibung
- Year 11 Digital Solutions Mindmap am Trivia Game - Copy, erstellt von Julia de Beer am 10/05/2022.
- Erstellt von
- Julia de Beer
- Aufrufe
- 4
- Bewertung