Skip to content

musawerfatih/quiz-game-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

True or False Quiz Application

This is a Python program that allows users to take a quiz based on True or False questions. The program fetches 10 questions from the Open Trivia Database API and displays them in a beautiful GUI. Users can select either True or False as their answer, and the program will provide immediate feedback by changing the color of the canvas and displaying a message.

Features

  • Fetches 10 questions from the Open Trivia Database API using API and stores them in JSON format
  • Displays the user's score at the top of the window
  • Displays each question in a canvas below the score
  • Provides two buttons for True and False answers
  • Gives immediate feedback by changing the color of the canvas and displaying a "Correct" or "Incorrect" message
  • Disables the buttons after 10 questions and shows the user's total score

Screenshots

image Screenshot (51) Screenshot (52) image

How to Use

  1. Clone the repository to your local machine.
  2. Open the terminal or command prompt and navigate to the directory containing the cloned repository.
  3. Install the required packages using the following command:
pip install -r requirements.txt
  1. Run the program by executing the following command:
python main.py
  1. The program will display the first question in the GUI.
  2. Click on either the True or False button to select your answer.
  3. The program will display a message indicating whether your answer was correct or incorrect.
  4. The program will then display the next question.
  5. Repeat steps 6-8 until you have answered all 10 questions.
  6. At the end of the quiz, the program will display your total score and disable the True and False buttons.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages