Skip to content

achrafness/flag-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flag Finder

A Flask-based flag-guessing game. A flag appears, you type the country, one wrong guess ends the run.

Features

  • Filter flags by region (Africa, Americas, Asia, Europe, Oceania)
  • Autocomplete with live country suggestions (keyboard-friendly: arrows + enter)
  • One-miss-and-over scoring
  • Flags served from the open-source lipis/flag-icons project via jsDelivr (MIT)

Run locally

pip install -r requirements.txt
python app.py

Open http://127.0.0.1:5000.

Project layout

flag-finder/
├── app.py                  # Flask routes and game API
├── requirements.txt
├── static/
│   ├── css/style.css
│   ├── js/game.js          # autocomplete + game loop
│   └── data/countries.json # 197 countries with region + ISO code
└── templates/
    ├── base.html
    ├── index.html          # region picker
    └── game.html           # game screen

License

MIT

About

Flask-based flag-guessing game with region filter and autocomplete

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors