A modern, interactive quiz application built with Python that supports both single-player and multiplayer modes, featuring a clean GUI interface and extensive customization options.
- 🎮 Single-Player Mode - Test your knowledge at your own pace
- 👥 Multiplayer Mode - Challenge friends in real-time trivia battles
- 📝 Question Management - Easy-to-use interface for adding and editing questions
- 🏆 Leaderboard System - Track top performers and compete for high scores
- 👤 User Profiles - Personal progress tracking and statistics
- 🎨 Modern GUI - Clean and intuitive Tkinter-based interface
- 🔧 Customizable - Easy configuration using TOML files
- Python 3.x
- pip (Python package manager)
- Clone the repository:
git clone https://github.com/hreger/python-quiz-application
cd python-quiz-application- Create and activate a virtual environment:
# Windows
python -m venv venv
.\venv\Scripts\activate
# macOS/Linux
python3 -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txtquiz_application/
├── venv/ # Virtual environment
├── questions.toml # Quiz questions configuration
├── users.toml # User data storage
├── quiz_backend.py # Core logic and functionality
├── quiz_gui.py # GUI implementation
└── README.md # Documentation
- Start the application:
python quiz_gui.py- Choose your game mode:
- 🎯 Single Player: Practice mode with instant feedback
- 🤝 Multiplayer: Challenge other players
- ⚙️ Question Management: Add or edit questions (admin only)
- 📊 Leaderboard: View top scores
[[question]]
category = "Geography"
difficulty = "easy"
text = "What is the capital of France?"
options = ["Paris", "Berlin", "Madrid", "Rome"]
answer = "Paris"
feedback = "Paris is the capital and largest city of France."[[user]]
username = "player1"
score = 0Want to contribute? Great! Please check our contribution guidelines.
- Fork the repository
- Create a feature branch
- Install development dependencies:
pip install -r requirements-dev.txtThis project is licensed under the MIT License - see the LICENSE file for details.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- PowerShell Execution Policy: If you encounter execution policy issues on Windows:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
- Missing Dependencies: Ensure all requirements are installed:
pip install -r requirements.txt
- File Not Found Errors: Verify configuration files exist in the correct locations
LinkedIn Link - P Sanjeev Pradeep
Project Link: https://github.com/hreger/python-quiz-application
Made with ❤️ by [P Sanjeev Pradeep]


