Settings

Theme

Show HN: Name That Nation

namethatnation.com

201 points by andrewtbham · 115 comments · 1 min read

Reader

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

47 threads
fifticon

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

    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

      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

    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

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

    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

    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

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

youngNed

Its good, but I was expecting a rotate/zoom

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

  • DylanSp

    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

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

asimpletune

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

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

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

  • rob74

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

  • Aachen

    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

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

forinti

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

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

    > 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

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

  • bluetomcat

    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

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

      • Tainnor

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

        • 130e13a

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

    • baryphonic

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

      • mason55

        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

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

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

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

midasuni

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

thih9

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

    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_

      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

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

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

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

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

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

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

trurl42

Keyboard accessibility could use some love.

sabzetro

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

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

  • rob74

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

    • mason55

      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

    "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

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

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

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

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

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

StopTheTechies

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

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

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

  • AJ1998

    Can you explain how that makes it ironic?

    • toyg

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

      • rrr_oh_man

        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

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

    • rrr_oh_man

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

      • input_sh

        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

        Taiwan and Kosovo would be some other examples.

BeetleB

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

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

john-radio

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

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

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

    • Tainnor

      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

        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

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

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

(129/195)

SalimoS

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

mkl

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

tacone

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

getwiththeprog

Thank you for highlighting my ignorance of geography :)

Keep up the great work.

praveen9920

Good work.

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

lloydatkinson

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

poulpy123

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

croisillon

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

Halan

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

  • eitally

    troll much?

    • Halan

      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

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

Nice game :)

personjerry

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