Skip to content

Repository for McHacks 2024. A fun-filled game about comparing stats of different countries, and trying to beat your highscore!

Notifications You must be signed in to change notification settings

MarrecBois/country_comparator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 

Repository files navigation

Country Comparator!

We constructed an game that relates countries' data to one another. The premise of the game is that the user will guess whether one country's data point is higher than another countries for a variety of categories.

Data was taken from Wikipedia for 198 Countries, in addition to the World Total. Some categories had limited information on countries.

The categories are the following: Population, Area (Total Area, not Landmass), Population Density, GDP (Nominal), HDI (Human Development Index), External Debt, CO2 Emissions per Year, Trade Balance (Value of Exports - Imports), Life Expectancy, Elevation (Highest Point, not Average), Military Expenditures (When Applicable, ~40 Countries), Average Wage (When Applicable, ~40 Countries), and Duration of National Anthem.

Running Instructions:

Run python3 app.py in terminal. Go to http link that is provided after the command is run.

Note: Will need flask and virtual-env installed

In the coding process, we used a mixture of html, css, and python with flask.

Main Logic is done using python and flask, in the app.py file. Information is stored within the countriesDict.py file. Website templates in templates folder. Style is taken from static/css folder. Flask session contains session info.

About

Repository for McHacks 2024. A fun-filled game about comparing stats of different countries, and trying to beat your highscore!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.3%
  • HTML 15.5%
  • CSS 3.2%