An interactive and educational game designed to test and improve your knowledge of world capitals, built with Python and the Tkinter graphical user interface framework. This README provides a comprehensive guide on how to get started, play the game, and understand its inner workings.
The Capital Cities Quiz Game invites players to challenge their knowledge of the capital cities of various countries around the globe. Developed with Python 3 and Tkinter, it combines a simple graphical interface with a robust quiz mechanism to offer both an educational and entertaining experience.
- Dynamic Question Generation: Each game session presents a series of questions on the capital cities, ensuring a unique experience every time.
- Immediate Feedback: Players receive instant feedback on their answers, allowing for a learning experience as they play.
- Session Control: The game offers the option to continue or end the quiz at certain intervals, giving players flexibility in their game session length.
Before running the Capital Cities Quiz Game, ensure you have the following installed on your system:
- Python 3.x: The programming language used to develop the game.
- Tkinter: A standard GUI library for Python, usually included with Python installations.
-
Clone the Repository
Start by cloning the repository to your local machine using Git:
-
Prepare the Environment
No additional setup required if you have Python and Tkinter installed.
To launch the Capital Cities Quiz Game, navigate to the directory containing the game files in your terminal and run:
- Start the Game: Run the script as mentioned above to start the game.
- Answer Questions: Type your answer into the provided text field for each question and submit by pressing Enter or the submit button.
- Feedback and Progression: After submitting an answer, you'll immediately see if you were correct. The game periodically asks if you wish to continue, allowing you to end the session or keep playing.
The game's main loop handles question generation, answer validation, and session management. It uses Tkinter for rendering the UI, where questions are displayed and answers are submitted. The logic behind question generation is to randomly select countries and their capitals from a predefined list, ensuring a wide variety of questions.
Contributions, bug reports, and feature requests are welcome! Feel free to fork the repository, make your changes, and submit a pull request.
- v.0-with GUI
- v.1=without GUI