Skip to content

resole79/quiz_game_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quiz Game App

GUI version of Quiz Game

List of random questions and the user must click True/False answer.

The question are from Open Trivia Database using API

It's a part of the #100DaysOfCode challenge by Angela Yu.

Installation

To get started with the Quiz Game App, follow these steps:

  1. Clone the repository:
git clone https://github.com/resole79/quiz_game_app.git
  1. Run the main.py file:
python3 main.py

File Structure

  • main.py: Main program.
  • question_model.py : Class "Question"
    • Instance:
      • text,
      • answer
  • quiz_brain.py : Class "QuizBrain"
    • Instance:
      • question_list,
      • question_number,
      • score,
      • question_current
    • Method:
      • "still_has_question"( check if are still question left ),
      • "check_answer"( check if the answer are correct ),
      • "nex_question" ( show next question )
  • quiz_ui.py : Class "QuizUi"
    • Method:
      • "get_question"( get_question ),
      • "check_true"( get 'true_answer_button' click ),
      • "check_false"( get 'false_answer_button' click ),
      • "get_feedback" ( give feedback from your answer )
  • data.py : File contains the questions using API requests

Usage

How program present

  • Click True / False about a question


Credit

Author : Emilio Reforgiato (resole79)

About

Quiz Game App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages