Giter Club home page Giter Club logo

quiz-app's Introduction

Capital Cities Quiz Game

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.

Introduction

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.

Features

  • 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.

Prerequisites

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.

Installation

  1. Clone the Repository

    Start by cloning the repository to your local machine using Git:

  2. Prepare the Environment

No additional setup required if you have Python and Tkinter installed.

Running the Game

To launch the Capital Cities Quiz Game, navigate to the directory containing the game files in your terminal and run:

How to Play

  • 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.

Program Explanation

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

Contributions, bug reports, and feature requests are welcome! Feel free to fork the repository, make your changes, and submit a pull request.

Versions:

  • v.0-with GUI
  • v.1=without GUI

quiz-app's People

Contributors

pavellakov avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.