this post was submitted on 13 Dec 2025
129 points (99.2% liked)
Programming
24058 readers
579 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have a program called "country guess" that I made a year ago where it's like the Sporcle quiz but with a) the proper UN recognized countries (with options for some of the partially recognized ones), b) completely offline since it's made with half-baked Python and c) it's text-based (ASCII art maps and all). It times how long you took to complete it, but there is no time limit. It also accepts alternative names, just like the Sporcle quiz (e.g. "uk" or "usa")
The way I did it was incredibly time consuming though, as it relied on a whole load of string formatting to show the ASCII map with countries highlighted (each country is a list of either whitespace or hashes #), meaning I had to manually copy and past the white space of the ASCII maps I found for each and every country. No wonder why I never finished it. It also had the flaw of not showing the country names in the big countries, with all of them shoved to the bottom of the map, meaning when you are close to finishing, you can't see both the map and the countries you got right.
As of right now, I think it has the continents of Africa, Europe, and the Americas, as well as Oceania. Not Asia though (there are simply too many countries there!) and the world, since I never bothered to finish it. If I recall correctly, the partially recognized territories I included that actually worked were Western Sahara, Somaliland, and Kosovo. I also had the optional UN observer states of the Vatican and Palestine.
Do note that the python program requires the modules "colorama" for colourful text and "art" for ASCII text headings I think.