Skip to content

bzm10/Trivia-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Trivia Game

Welcome to the Trivia Game! This engaging quiz application utilizes the Open Trivia API to fetch and present questions across various categories and difficulty levels. Test your knowledge in multiple-choice or true/false formats and see how many questions you can answer correctly.

Requirements

  • Python 3.x
  • Required Python packages: requests, tkinter, pygame

How to Run

  1. Clone the repository to your local machine.
  2. Install the required packages using the following command:
    pip install requests pygame
  3. Run the game using the following command:
    python trivia_game.py

Game Instructions

  1. Select Category: Choose a category from the dropdown menu.
  2. Choose Difficulty: Select the difficulty level: Easy, Medium, or Hard.
  3. Set Question Count: Specify the number of questions you want to answer (5, 10, 20, or 25).
  4. Select Game Type: Choose between Multiple Choice or True/False.
  5. Enable Timer (Optional): Tick the timer checkbox to add a time limit to each question.
  6. Start the Game: Click "Continue" to begin the game.

Gameplay

  • Read each question carefully and select your answer.
  • If the timer is enabled, respond within the time limit for each question.
  • After answering all questions, the game will display your final score.

Credits

Acknowledgments

  • The game leverages the requests library for API communication and pygame for playing sound.
  • Special thanks to the Open Trivia API for providing the trivia questions.

Keywords

Trivia, Quiz Game, Open Trivia API, Python, Tkinter, Educational Game, Python Trivia Game

Additional Information

  • The code is extensively commented for easy understanding.
  • The file order has been optimized for efficiency and clarity.

Feel free to contribute to the project or report any issues. Enjoy playing!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages