https://github.com/gemmus/flightgame
Project: A travel based game set in Europe using actual location and airport data, and real time weather.
https://github.com/gemmus/flightgame
api css flask-cors html javascript json leafletjs pycharm python sql weather-api
Last synced: 3 months ago
JSON representation
Project: A travel based game set in Europe using actual location and airport data, and real time weather.
- Host: GitHub
- URL: https://github.com/gemmus/flightgame
- Owner: Gemmus
- Created: 2022-11-20T07:58:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T08:25:14.000Z (about 3 years ago)
- Last Synced: 2025-10-09T14:38:18.086Z (9 months ago)
- Topics: api, css, flask-cors, html, javascript, json, leafletjs, pycharm, python, sql, weather-api
- Language: JavaScript
- Homepage:
- Size: 3.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flight Game Project
A travel based game project that is implemented in two phases. The game allows the user to travel in Europe with limited CO2 budget to reach weather targets and guess the secret locations. Each hidden location is presented with a riddle.
For travel destinations, an open source SQL database is utilized which contains all the available airports in the world. For the project, only the large European Airports were selected. MariaDB is used as the tool for database implementation during the design of
the game. With the altitute and the longitude of the aiports, the travel distance between two airports are calculated along with the rough estimation of CO2 consumption.
The real time weather condition of the selected locations is provided by [WeatherAPI](https://www.weatherapi.com/docs/).
First Phase: Prototype
Programming language: python, IDE: PyCharm.
User interaction only via IDE. All rules and information is displayed through the console of the IDE and the user provides input via the same platform using keyboard.

Figure 1. Example of console output: Guessing one of the right secret location and winning the game
Prototype has two versions: Fairweather_Tourist.py has no implementation of real-time weather, while Fairweather_Tourist_with_API.py has.
Second Phase: User-Friendly Interface and Real-Time Weather
Implementation of Flask Cors, HTML, CSS, JavaScript parts, map as visual and real-time weather condition:
The user plays the game using web browser and mouse.

Figure 2. User Interface via Browser
Scoring is based on the combinations of weather targets and secret locations.