QuiZam is an interactive quiz application focused on Zambian general knowledge, history, geography, and civic education. It's built using Java Swing and provides an engaging user interface for users to test their knowledge about Zambia.
- Multiple quiz categories: General Knowledge, History, Geography, and Civic Education
- Randomized questions for each category
- Timed questions with a 10-second countdown
- Progress tracking during the quiz
- High score system for each category
- Pause and resume functionality
- Fun facts about Zambia on the welcome screen
- Java Development Kit (JDK) 8 or higher
- Java Runtime Environment (JRE) for running the compiled application
-
Compile the Java file:
javac Main.java -
Run the compiled class:
java Main
- Launch the application.
- On the welcome screen, choose "Play Quiz" to start a new game.
- Select a category from the available options.
- Answer the questions within the given time limit by clicking on the correct option.
- After completing the quiz, you'll see your score and have the option to replay, change category, or end the quiz.
- High scores are automatically saved for each category.
- You can view the high scores by selecting "View High Scores" on the welcome screen.
- The application uses a file named
high_score.txtto store and retrieve high scores. - Questions are randomized for each playthrough to provide a varied experience.
- The pause feature allows users to temporarily stop the quiz and resume later.
Feel free to fork this project and submit pull requests with improvements or additional features. Some ideas for enhancements include:
- Adding more categories and questions
- Implementing difficulty levels
- Creating a question editor interface
- Adding sound effects and background music
This project is open-source and available under the MIT License.