July 5th, 2024

Show HN: I made a game for learning the country flags of the world

Flag Match offers a game to match countries with flags from 236 countries. Players track stats, identify flags from continents, aim for high scores, and engage with creator @kyrylosilin. Future event in 2024 mentioned.

Read original articleLink Icon
Show HN: I made a game for learning the country flags of the world

The website "Flag Match" offers a game where players can match countries with their respective flags out of a total of 236 countries. The game tracks statistics such as the top player, games played, and players participating. Users can test their knowledge by identifying flags from various continents like Africa, Asia, Europe, North America, South America, and Oceania. The game includes a wide range of countries from Afghanistan to Zimbabwe, each represented by its flag for recognition. Players can aim to achieve a high score, longest streak, and improve their match accuracy. The website also provides an option to play again, claim scores, and encourages users to tap the matching pairs. The game was created by @kyrylosilin, the creator of Telebugs. Additionally, there is a mention of a future event in 2024 related to Ukraine (πŸ‡ΊπŸ‡¦ 2024).

Link Icon 12 comments
By @dadoum - 3 months
The way flag appears can be exploited to get very fast.

We can memorize the last two matches position and alternate from there, as flags may not be there when names are popping but after at most one elimination the flag must have appeared (and if you enjoy try-harding you can refresh the website until you get the two first flags and names aligned, so almost no mouse move nor memory are needed)

By @modinfo - 3 months
My Cheat for console

function i(t){const e=t.dataset.synsetid;const o=t.textContent.trim();if(!o.endsWith(`(${e})`)){t.textContent=`${o} (${e})`}}function t(){const t=document.querySelectorAll('div[data-game-target="word"]');t.forEach(i)}t();const e=function(e,t){for(let t of e){if(t.type==="childList"){t.addedNodes.forEach(t=>{if(t.nodeType===Node.ELEMENT_NODE){if(t.matches&&t.matches('div[data-game-target="word"]')){i(t)}}else if(t.nodeType===Node.TEXT_NODE){const e=t.parentElement;if(e&&e.matches&&e.matches('div[data-game-target="word"]')){i(e)}}if(t.querySelectorAll){const o=t.querySelectorAll('div[data-game-target="word"]');o.forEach(i)}})}}};const o=new MutationObserver(e);o.observe(document.body,{childList:true,subtree:true});

By @KomoD - 3 months
I got romania and chad alongside each other, that certainly made it harder lol.
By @uhartelightning - 3 months
Very fun and responsive but I ended up in a chain of "off-by-one" where there was a country/flag whose partner was NOT visible at the moment but was the next to pop up.
By @go_elmo - 3 months
Im thinking about a similar thing for plant-species. Knowing them makes being outside a whole different experience!
By @jddil - 3 months
Thanks, my daughter loves it. She wanted me to tell you she's only 10 and got 2nd on the leaderboard.
By @stuartjohnson12 - 3 months
Simple, but with excellent execution. Greatly enjoyed practicing with this, and bookmarked so I can return
By @sciencesama - 3 months
Is this open source ?? We can use the same template for other games too if open sourced !!
By @jack_the_dev - 3 months
For some reason the game is highlighting the correct answers for me before I click them.
By @klubbhead - 3 months
Thanks, great job! I very much liked it, and so did my daughter!
By @thenipper - 3 months
This is great. My 11 year old thanks you!
By @charlestehio - 3 months
vexillologists would definitely love this