Giter Site home page Giter Site logo

country-guesser's Introduction

Country quiz game

Source code for Gege's country guessing quiz game made with Python.

Start the game

Start the game by running the commands python server.py and python client.py in a terminal opened within the project directory.

Guide

You will be asked to input the country you think the requested capital belongs to. The game will last until you fail to guess the correct country, even with a hint provided.

Once the game ended, you are given 5 options to choose from:

  1. Play Again: Your console gets cleared, and a new game starts
  2. Leaderboard: The top 5 scoring players will be displayed
  3. Save Score: Choose this option to save your score to the database. You will be asked to provide a username and a password. If the given username does not exist, a new user will be registered
  4. Reset Score: This option lets you reset your high score to 0 while keeping your account
  5. Quit: Quits the game

Point system

For every correct guess you get 2 points. If a hint was used to guess the correct answer, you only get 1 point. Incorrect guesses do not get any point.

Requirements

Other than an up-to-date Python, you will need to install sqlite3. Every other package you see in the project comes with Python by default.

country-guesser's People

Contributors

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