An interactive, ad-free quiz game built with Python and Tkinter.
Answer as many random questions as possible within 60 seconds โ fast, fun, and educational!
- โฑ๏ธ Timed quiz (60 seconds)
- ๐ Randomized questions and shuffled options
- โ Instant feedback on answers
- ๐จ Modern UI using
tkinter - ๐ No ads โ clean experience
- ๐ต Optional sound effects
- ๐งพ Loads questions from a JSON file
- ๐ฆ Exported as a
.exeapp (Windows)
๐ quiz-game/
โโโ build/ # Auto-generated by PyInstaller
โโโ dist/ # Contains the final .exe file
โโโ .gitignore # Ignores build and temp files
โโโ quiz.py # Main Python app
โโโ quiz.spec # PyInstaller build config
โโโ questions.json # Your quiz questions file
โโโ README.md # You're reading it!
- Clone this repo:
git clone https://github.com/<your-username>/<your-repo>.git cd <your-repo>
- Run the script:
python quiz.py
Make sure you have Python 3 installed.
If you want to generate an .exe for Windows:
- Install PyInstaller:
pip install pyinstaller
- Run:
pyinstaller --onefile --windowed --add-data "questions.json;." quiz.py
The .exe file will be in the dist/ folder.
Edit the questions.json file like this:
[
{
"prompt": "What is the capital of France?",
"options": ["Paris", "London", "Berlin", "Madrid"],
"answer": "Paris"
}
]Add as many questions as you like!
This project is licensed under the MIT License.
Made with โค๏ธ in Python using Tkinter.