Settings

Theme

Show HN: Name That Nation

namethatnation.com

201 points by andrewtbham 2 years ago · 115 comments · 1 min read

Reader

I made this map game. react, material ui, hosted on vercel cdn, no back end.

fifticon 2 years ago

This is already written elsewhere, but this game screams to work efficiently with the keyboard, so one can just type country names and hit 'return'. I can already mostly navigate it with TAB + shift-TAB, but as the game loop is simply 'type name, get feedback', it seems weird the keyboard flow has not been polished in its otherwise quite polished design. I am at two minds about the drop-down matches covering the beautiful prompt map. I realise I should be able to carry on typing even though I then can no longer look at the country shape, but for the design purity of it, I would prefer the drop-down to not cover the prompt. Maybe by allocating less space to the candidates, at max showing 2-3 options, or showing them _beneath_ the map. Still, very beautiful compared to a version I made 20 years ago for my private use (CIA world database map says hello!).

  • ghaff 2 years ago

    This is more interesting than the one that came out around the time of the initial Wordle craze. That was only an unscaled shape which was really hard even if you were pretty good at geography. (Most countries don't have a very distinctive shape.)

    • mason55 2 years ago

      Neighborle is an ok daily geography game. If you're really good at geography then it's probably too easy but every couple days one of the puzzles actually makes me think (usually stuff on the Atlantic coast of Africa).

  • andrewtbhamOP 2 years ago

    I have tried to get this to work. The problem has to do with the material UI Select component used. I think the problem is that the return key is already used to select an item from the select.

_xivi 2 years ago

Nice project

Gameplay wise, I find the feedback loop to be lacking tho. Right now, there's no much feedback other than "You got it wrong, actually, it's X. Anyway, moving on...". This makes it less of an educational game and more like a test.

For me, I'm always close, so revealing neighbor countries on the map along with the answer (especially for small countries) can add a "spaced repetition" element to the game, it help your brain connect the dots and feel more productive and fun

  • amenghra 2 years ago

    This. There used to be a fun geography game on the Commodore 64 where you had to fly a helicopter over countries/capitals. It was fun because when you had no idea where a country was, you just kept flying in circles. They got the gameplay right to some degree.

    Screenshots: https://www.myabandonware.com/game/maps-usa-n4v

  • miggol 2 years ago

    Absolutely!! Some more suggestions of mine:

    * Show the incorrect guess you just made on the map, even if not close

    * Repeat countries that you got wrong within the next 10 turns, to learn by repetition

  • billfruit 2 years ago

    Or atleast uncover the names of countries already answered, feels like slowly colouring in the map of the world.

youngNed 2 years ago

Its good, but I was expecting a rotate/zoom

I really like travle.earth: https://travle.earth/challenge/

  • DylanSp 2 years ago

    I've been playing Travle for a while, didn't know it had a dedicated URL for the challenges, that's nice. I wish the challenges had an infinite play mode like https://travle.earth/practice/, but oh well. Thanks for linking that!

  • monsoon49 2 years ago

    I've made an account right now just to say thank you for introducing me to this game!

asimpletune 2 years ago

I love it, my only feedback was the I didn't really understand which I was supposed to pick when it showed me N. Korea. Because all I saw the Korean Peninsula, and the north was dark green and the south was light green.

pmontra 2 years ago

The positions of the Pacific islands and the smallest nations of the Caribbean are difficult to remember. For Central America it's hard to remember the north to south sequence and the same for the equatorial region of the coast of western Africa. Everything else is pretty easy.

Considering how many countries are there in those regions I expect that I should achieve at least 50% but not close to 75%. That's surprisingly bad for an European that thinks to know geography.

adithyassekhar 2 years ago

You can make this more educative by showing 4 or 5 options to choose from for a particular country.

  • rob74 2 years ago

    That would be the easy mode... you could also vary difficulty by picking nearby countries to make it a bit more difficult.

  • Aachen 2 years ago

    Five at random would be fairly trivial, do you mean giving the five adjacent or nearest countries? Then one would learn to tell them apart, or even if not, at least you'd learn to associate the area whenever hearing about that country on the news or so. That would be a nice improvement probably!

crvdgc 2 years ago

For those who want to learn map, capital, and flag: https://github.com/anki-geo/ultimate-geography

forinti 2 years ago

I liked it. Maybe you could add some facts about each country as a tip or after the answer was checked.

And the tiny countries such as the Vatican or the Pacific Island states could be zoomed in.

skor 2 years ago

Nice, enjoyed seeing how I don't know the political map as good as I thought.

If I click "Check" without typing anything and then click "Correct" my score goes up.

  • isametry 2 years ago

    > If I click "Check" without typing anything and then click "Correct" my score goes up.

    I believe that’s a feature. If you can’t find the actual answer (or don’t want to) you can just say or think the answer for yourself, then check and honestly choose if you got it right. That way you still get to keep track of your score, without having to input the name every time.

    • andrewtbhamOP 2 years ago

      That is correct. It is a feature. It is a challenge how to make it more clear to the user.

  • bluetomcat 2 years ago

    The hard ones for me were countries in mainland Africa, island nations in the Atlantic and the Pacific, and small adjacent countries that you associate in a group – say Lithuania, Latvia and Estonia, or Uzbekistan, Turkmenistan, Tajikistan, Kyrgyzstan.

    • LfLxfxxLxfxx 2 years ago

      Lithuania, Latvia and Estonia are easy - they go in alphabetical order from north to south.

      • Tainnor 2 years ago

        Also, Estonia is closest to Finland, which makes sense since the languages are close.

        • 130e13a 2 years ago

          and it makes sense that lithuania is the bottom one (ie, closest to poland), since there used to be a polish lithuanian commonwealth

    • baryphonic 2 years ago

      For the 'stans, I remember TUTK (west to east), and that Turkmenistan is closest to Turkey.

      • mason55 2 years ago

        The other way to remember is, if you can remember that Kazakhstan is the biggest, then it goes alphabetically clockwise.

        Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Uzbekistan

tempestn 2 years ago

You could do easier difficulty by making the questions multiple choice. (I mean, technically it's already multiple choice, but say 5ish choices.) Potentially could have multiple levels of difficulty by varying the number of choices, or by selecting options by proximity.

ruggeri 2 years ago

I liked it a lot, especially the UI.

I disagree with any suggestion that makes the game easier. There are a lot of websites with name-that-country games. For people who are pretty good at locating and naming countries, they want to improve their ability, and they need a tougher game to do that.

It would be fun if there were some country factoids or images, probably. But for people who are trying to get really good at locating countries, they probably already do know facts about various countries, so there isn't a lot of value there.

Spaced repetition of mistakes would be valuable. Very few alternatives offer this.

Maybe you could also offer to filter on a population cutoff? I frequently cut off countries with less than 200k population, because I am not that interested in the various island countries.

Here is my very half-assed version I built once upon a time: https://github.com/ruggeri/world-map-game. Yours is a lot better.

  • ruggeri 2 years ago

    Oh, another suggestion: show the country and let them name the capital!

midasuni 2 years ago

What do the colors mean Why was North Korea in dark green and South Korea in light green, and which should I name?

thih9 2 years ago

My score was 7/20.

I enjoyed it; I like that you can use this without entering the country name, i.e. do just "Check" -> "Correct"/"Wrong". This is such a fast and rewarding loop, reminds me of flash cards or spaced repetition apps.

  • Aachen 2 years ago

    I'm at 27/45 when I ran out of available time (IRL), which is pretty depressing for someone who once knew them all :(

    The ones you never hear about slip the mind. Sure I can still say Zambia is near South Africa, but which one is Mozambique, which one Botswana, and which one Zambia? Hard

    I even had trouble remembering Yemen! Always found that easy for some reason, especially after I remembered that the order is "YO!" (Yemen, then Oman). Again not a country much news comes from

    • wartijn_ 2 years ago

      Yemen has been in the news lately, because of its location. Ships have been avoiding the Red Sea because people in Yemen were firing rockets at them.

progval 2 years ago

I'm having issues with keyboard navigation on Firefox:

* Typing a few letters then pressing tab closes the dropdown instead of selecting options in the dropdown

* when the text box is selecting, pressing enter does nothing; I need to press tab then enter to submit the answer

AdamH12113 2 years ago

For learning geography, I like:

https://www.jetpunk.com/quizzes/how-many-countries-can-you-n...

I ran across it years ago and decided to use it to practice naming countries. For a harder challenge, try this one, which doesn't give you a map:

https://andys.org.uk/countryquiz/

vehemenz 2 years ago

How about a hard mode that doesn't tell you what the answer is until you're done?

Process of elimination makes the last 50 pretty easy if you look through the dropdown.

benjijay 2 years ago

Fun! A little too easy to check the filenames of the images if stuck for an answer but I imagine most people aren't dirty cheats like me :P

pvinis 2 years ago

Nice! One thing to note is that typing on the search is case sensitive. Please make it insensitive, so I don't have to type M instead of m.

retwertett 2 years ago

On Firefox if I type the answer and tab to the continue button, It's counted as correct, even if it's false.

trurl42 2 years ago

Keyboard accessibility could use some love.

sabzetro 2 years ago

This is legitimately great! Would love it if there was some sort of session persistence (even if it's just an array in localStorage of countries I've already covered.) that way I could play through all the countries without having to keep the window open. Simple and effective game! Nice job :)

dvh 2 years ago

Give partial score for close guess, I called Benin a Sierra Leone, or art least show my guess and target country

  • rob74 2 years ago

    Yeah, I was pretty good in Asia, except for the various ex-USSR "-stans" (I just know Kazakhstan is the biggest one).

    • mason55 2 years ago

      If you know Kazakhstan is the biggest then you can get the rest. They're alphabetical going clockwise from Kazakhstan -> Kyrgyzstan -> Tajikistan -> Turkmenistan -> Uzbekistan

  • rrr_oh_man 2 years ago

    "Mexico" -> "USA, close enough"

    Also possible with Russia + either one of those:

    * Ukraine

    * Norway

    * Poland

    * Estonia

    * Lithuania

    * North Korea

    * China

    * Latvia

    * Finland

    * Georgia

    * Mongolia

    * Kazakhstan

    * Belarus

    * Azerbaijan

fastaguy88 2 years ago

An interesting demonstration of the difference between number averages and mass/size averages. Did great on the big countries. No idea where San Marino was, so lots of relatively smaller countries pulled my average down. By mass/size, probably 90+ %. By number, only 70%.

tiktaktow 2 years ago

Hey you are missing Mauritius!

Nice game. Would be great if the gameplay moved on to the next country after a correct or wrong answer, without the need to hit the "Continue" button.

Got 182/195! Hate the Oceania and Caribbean for always making me lose points in quizzes :D

ukuina 2 years ago

Well done!

What are these types of web apps that have no backend called?

You still need the CDN, so they're not classically serverless (https://www.sqlite.org/serverless.html)

baryphonic 2 years ago

Great work! Only feedback would be to make the drop-down search aware of the abbreviations for various countries. For example, St. Lucia rather than Saint Lucia, DPRK for North Korea, or even CAR rather than Central African Republic.

wscourge 2 years ago

Cool one, especially for kids. It'd go well with naming the capital city, too.

StopTheTechies 2 years ago

This seems to conflate the idea of a nation (ie a people) with that of a country or state, which I find pretty odd. Many countries are composed of many constituent nations, many of which will cross state borders.

KomoD 2 years ago

I wish the dropdown didn't cover the entire map when you focus the text box, another nice feature would be being able to select multiple regions (e.g. just Europe and Asia)

prmoustache 2 years ago

Oh irony is that first country I had when visiting the site was Palestine.

  • AJ1998 2 years ago

    Can you explain how that makes it ironic?

    • toyg 2 years ago

      Because it's not recognized as a State by Israel and a few other countries.

      • rrr_oh_man 2 years ago

        It's a big game of cat, mouse, pride, and political points.

        -> Around 30 member states of the UN also fail to recognize the statehood of Israel...

      • tempestn 2 years ago

        And because that fact is quite salient in current geopolitical affairs.

    • rrr_oh_man 2 years ago

      There are couple of entities in the game whose statehood is debated / contested.

      • input_sh 2 years ago

        I mean, there is no "objective" list of countries everyone agrees on, nor how many are there in total. You're gonna upset some people regardless of which definition you choose.

      • Tainnor 2 years ago

        Taiwan and Kosovo would be some other examples.

BeetleB 2 years ago

I'm guessing this was inspired by the following thread (by Derek Sivers)?

https://news.ycombinator.com/item?id=39169197

john-radio 2 years ago

Excellent! Small bug: null responses are considered "correct" in the right/wrong counter. I've skipped 3 and gotten 3 wrong, and it's showing 3/6 correct.

Tainnor 2 years ago

I got 128, which I guess isn't too bad. I'm just totally hopeless when it comes to most of Africa, and there's just way too many small island states.

  • frereubu 2 years ago

    You can practice here! https://www.youdontknowafrica.com/

    • Tainnor 2 years ago

      I think the better way for me would be to form some (really, any) kind of association to more African countries, most of which are a total blur to me. Most other countries I could say something about.

      It doesn't help that most of Africa is basically only in the media if there's a disease or war or something.

      • frereubu 2 years ago

        That does help for sure - I have friends who are from or have been to Kenya, Zambia, Mali, Gambia, South Africa, Egypt, Morocco, Somalia and a few others, so perhaps I've got a bit of a head start. If you're starting from scratch, one enjoyable way is to read their Wikipedia articles when they come up in the news, that way you don't just get the sensationalised news stories and can form more rounded associations with the country.

namphibian 2 years ago

Very cool. Are you collecting data on guesses? Would be interesting to see a ranking of countries by how many people can ID them

S_Bear 2 years ago

A hint with the capital would be nice, especially for the tiny island nations. Otherwise I thoroughly enjoyed it!

(129/195)

SalimoS 2 years ago

Btw on safari on iOS long press the image will show the name of the country from the Wikipedia link

mkl 2 years ago

155/195. Struggled with Pacific and Caribbean island nations, and some of Africa.

tacone 2 years ago

Very nice and well executed. Would love to be able to zoom in a bit.

getwiththeprog 2 years ago

Thank you for highlighting my ignorance of geography :)

Keep up the great work.

praveen9920 2 years ago

Good work.

I couldn’t name 98% of the countries. Realised my geography sucks

lloydatkinson 2 years ago

Fun game! That material UI looks dated and clunky though.

poulpy123 2 years ago

nice ! I have a big problem with pacific island, central america and subsaharan africa

croisillon 2 years ago

why is south korea another shade of green when the question is north korea?

Halan 2 years ago

Good example but what adult doesn’t know all the countries of the world?

  • eitally 2 years ago

    troll much?

    • Halan 2 years ago

      Not at all, there might be a 4/5 neighbour countries you don’t fully remember which one is which but generally I don’t know many people who would find that not boring. Maybe it is an European thing

hasty_pudding 2 years ago

you lost me at the drop down on mobile.

I'd suggest on mobile just having a selection of four to eight options that you can touch with your finger.

geoelkh 2 years ago

Nice game :)

personjerry 2 years ago

Why's it so slow? When I press Continue it takes like 1 second to load the next country?

It's like 195 jpegs, just pre-load them please. I can't continue like this after 3 countries, it's too tedious.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection