Hacker News new | past | comments | ask | show | jobs | submit login
Tradle (oec.world)
476 points by tantalor on March 10, 2022 | hide | past | favorite | 89 comments



I might consider adding whatever the attribute is this week (I know it's changed over the years) to prevent auto-complete. My 1Password extension keeps trying to fill in my address on the guessing field.

EDIT: Editing the page with some of the ways to disable autocomplete [0] don't seem to be working but I'm not sure if that's because 1Password binds at page load and doesn't care what I change using DevTools. In the end this is clearly 1Password's problem [0] but I sympathize with them even as I am negatively affected by it. If they had an attribute (like lastpass) we all know the worst websites/offenders on the planet (banks, intranet sites, most financial institutions, most site asking for routing/account numbers, etc) would abuse the hell out of it. It's bad enough when they try to prevent copy/pasting in. I do think they should at least provide a way to blacklist sites where you don't want to use 1Password.

[0] https://stackoverflow.com/a/51686510/1072106

[1] https://1password.community/discussion/117501/as-a-web-devel...


The search field at the bottom of Hacker News is one point of reference:

  <input type="text" name="foo" autocorrect="off" spellcheck="false" autocapitalize="off" autocomplete="false">
Tradle currently uses creative but non-standard attribute values:

  <input type="string" autocomplete="nope">


> Tradle currently uses creative but non-standard attribute values

For autocomplete it's because Chrome unilaterally decided not to support autocomplete=off several years ago: https://bugs.chromium.org/p/chromium/issues/detail?id=914451


Good call! I think part of the issue in this case is the naming of the field. I’m on mobile and can’t easily check but I thought it was something like “country” or similar. I’m guessing 1Password sees that and attaches its UI, I’m seeing my saved identity/location being suggested when I click into the field. A potential fix is to rename the field and any id/class to something that is generic/not related to location. Again, this is 1Password’s fault for sure, I’m just suggesting a way to fix it.

For 1Password it’s hard to say what the fix is. I will say, 1Password needs to a decent amount of work on their identity-filling agent/component. It is wrong more often than I’d like and will clobber fields I’ve already entered with different data. It will also fill/clobber other fields that aren’t identity-related. It mistakenly thinks a field is something that it’s not, just like in this games case. It’s too greedy or too loose in its search for field to fill. Passwords/2FA/secrets/etc is rock solid, identities? Not so much.


I had to disable autocomplete recently, neither autocomplete="false" or autocomplete="off" worked. MDN (source below) indicates using "new-password, but in my experience passing in any random string to the autocomplete attribute did work.

https://developer.mozilla.org/en-US/docs/Web/Security/Securi...


Yeah, I've taken to just generating a UUID and throwing in there as I normally have a library to do that on my frontend projects.


that only sort of sometimes works. chrome uses some sort of AI to look at the text displayed in a way that could visually be construed as a label and use that to identify the field for autocomplete.

the only foolproof method i've found is to use contenteditable spans instead of input tags, which has it whole own set of problems.


> I do think they should at least provide a way to blacklist sites where you don't want to use 1Password.

Right click the page you want to block, and check out the 1Password context menu. There's an option to disable 1Password for the current page.


I've noticed this a whole lot recently -- a whole bunch of sites inappropriately autocompleting irrelevant things.


Seems like a fun guessing game, but the UI wasn't intuitive. I don't know if my first guess was correct, I thought for a while I was supposed to interact with the gray boxes, etc. I'd recommend having some non-dev friends play with it and provide feedback.

2nd on the giving geoguessr a run for its money. Or forming a strategic partnership? "Love tradle? You might like geoguessr, too!" etc


Its UI is similar to Worldle (https://worldle.teuteuf.fr/), it might be implicitly assuming you're familiar with it already, in which case the "how close you are geographically" mechanism makes sense.


I don't think familiarity with Wordle helps much. This UI is pretty damn confusing. You type in country names, and then a km value, arrow, and percentage value appears. I have no idea what these signify. Clicking on the boxes brings up a box that gives you information but I have no idea how that information is relevant.


They were referencing worldle not wordle. Note the extra L for world instead of word.


Ah, I'm going to blame that one on HN's ridiculous decision to use a 9px font size for comments.


150% zoom level is your friend.


that's me.

and my experience of the web has been painful for the past 5 to 6 years. it feels like no one cares about zoom level or accessibility...


For me (still sub-40 for a few more years) font-sizes on the web are fine. It’s only HN with it’s "superior" design where I have to zoom in.


I'll go out on a limb and say you have turned 40 in the past 5 to 6 years.


The arrow and distance are from the bad guess to what the answer actually is. So like I guessed Estonia, but the answer was Sweden so the arrow pointed northwest and the distance was some 300 odd km.


This is pretty obvious if you have played Wordle or Worldle.


Same, and I was incredibly confused by the wordle-style colored squares that briefly appeared. I saw them on the '?' page too, but no explanation of what they mean. I successfully completed the puzzle and still have no idea what those were.


Just a % bar for how close you are to the country geographically


well that was entirely unclear, and they appeared for such a brief time that I couldn't even parse them if i knew that.


Oh...it's only after reading the comments that I know what's going on. I didn't find it intuitive either.


On mobile I tapped on the boxes to see what they were. The pop ups have the answer in them. Not very helpful :/


Same on the web


This has a similar interface to Worldle (https://worldle.teuteuf.fr/) which I've been playing a lot. I've long been a fan of the OEC and always use it when I get curious about what goes on in a country at a high level, so both of these things in concert will really help me improve my geography!


I play Worldle every time I come across a Wordle clone, it's just so fun to guess countries, I guess riding off the same thing that Geoguessr found.


I was also excited to add this, but unlike Worldle it doesn't support imperial units and is pretty unusable on mobile.


> I was also excited to add this, but unlike Worldle it doesn't support imperial units ...

I'd say that's a feature.

It aligns with 98% of the world's countries, and 95% of the world's population.


It said to click for more information so I clicked.

Then is said related searches: What does Sweden export (2019)?

I tried Sweden and got the answer.

Seems like a bad UI.


Same here. The "more information" gave the country name away.


The distance really confused me. I got a distance of 4,353 km between a guess and the answer - which is what you get from Google, but now what you'd say from looking at a map. Border-to-border they are only 250 km apart.


Worldle uses the same calculations, center to center, else Russia would be just a few miles from the U.S. e.g.


Russia is 4 km from the US :) "Oklahoma to Krasnoyarsky Krai" makes sense mathematically but is a weird claim to make.


True, although "France / 0km South / Brazil" would also be strange, going by country boarders.


France's longest border is with Brazil :)


Okay, that was fun; maybe even a bit educational. I am not the best with geography, but I was able to guess based off the distance, got it on my fourth guess. It's not like I'm up to date on the exports of each nation or anything.


All these geo games that give you distances and directions to the correct answer would probably reward a little study of distance scales and how the continents line up.


#Tradle #4 6/6 ⬛⬛ ⬛⬛ ⬛ ⬛

https://oec.world/en/tradle

Sharing output is kinda misleading, I thought it would share the %s and direction.


This is like playing https://worldle.teuteuf.fr/ without seeing the country shape (since I do not know much about world trade). I love it – especially because it teaches me something new!


Sometimes I have trouble visualizing what country could be in that direction from the place I guessed, so having the exports is pretty helpful. Not every country would be capable of exporting Catalytic converters and centrifuges.


Got it in one :)

Cars + Lumber + Oil narrowed it down pretty well.


I got this in three, all quite close countries -- though I should have got it in one from the kaolin-coated paper bit.


wouldn't that also fit Brazil, for example?


I would've expected soybeans to be in there for Brazil. Also, I didn't realize Brazil exported any cars! I went off of the car one and tried to think of the foreign car manufacturers I see around here (US) and came up with Subaru/Toyota (Japan), Kia/Nissan (S. Korea), Audi/VW/BMW (Germany), Ferrari/Alfa Romeo (Italy) and Volvo (Sweden). That narrows it down quite a bit. Granted I'm not a big car person so I could've been wrong as I know there are a lot of large carmakers who don't export to the US.


Flubbed the first guess, took a better look and got it on the second one.


Web browser is a different language than English (French). When I try to enter a country whose name isn't the same in English and French, I get a pop-up saying "Pays inconnu" (unknown country).


Similar situation for me. I have an English (UK) Firefox, however the system locale is set to Swiss French... and most countries don't work.


Interesting, who knows the top export of Macedonia are centrifuges?


When will we get a Wordle version where we guess the Wordle clone?


Astrologers proclaims end of age of "LY" and proclaims age of "LE".


If you click on one of the export categories, it shows you related articles for the country. Might want to consider changing that so that it doesn’t give away the answer, otherwise awesome game!


I don't really understand what the 'share' button shows. The first 3 squares seem to be always green, but then the other two turn yellow or green... based on some sort of closeness or something?


Ah! I was wondering what car brand, I'm guessing it's Volvo?


Very informative game, and Friday’s is more challenging.

#Tradle #5 6/6 ⬜⬜

https://oec.world/en/tradle


> Friday’s is more challenging

Gave that one a go, here is the percentage & direction for my guesses: https://i.imgur.com/hGyNemi.png


That was fun, but as others have said the UI is a bit confusing.

Got it in two, thought it was Germany first and the arrow pointed me in the right direction.


I was on the same vein, but the petroleum and fish exports doesn't really fit so I was thinking UK first. In retrospect though I wasn't considering the total trade value, it narrows possible countries quite a bit, could make it a bit too easy maybe? It's probably a lot harder though with less prominent countries. Why only one per day though!


I actually missed the significance of the arrow entirely. It's obvious but I still focussed mostly on the distance.


Germany immediately was not an option... Volkswagen alone has like 100 Bln revenue per year.


Does "cars 7.5%" mean 7.5% of the country's exports is cars OR the country supplies 7.5% of the global car market?


I think it means 7.5% of the country's exports are cars. The visualization is a treemap, which shows relative sizes of datapoints. And if you click through to https://oec.world/ and check a country's data, you can see on the left its exports and on the right global exporters of the same good. The answer country is not 7.5% of global exports.

Other tips: the arrow is the direction the answer country is from your guess. The km is how far away.


The former.


I don't understand how it works.

EDIT: Nevermind, after reading some comments I got it, you are not supposed to click the big colored boxes.


edit:

Now I am really confused. It lets me guess again if I reload the page (no matter what I guess). I only get a few options from countries to pick (5 total) when I click the box to guess (a dropdown menu appears). After I used all of the slots it told me the answer was XXXXX (which was never an option for me to guess). No idea how this works.


You're supposed to start typing a country name and then you'll get an auto-complete list in that drop down.


Got it - what confused me was that when I click in the box without typing it gives me 5 suggestions already. Which I then assumed were the only 5 I could guess.


This wordle trend has gone-too-fardle


Careful reading the comments here. Several posts contain today's answer.


Text field does not clear when I submit. Chrome on Mac OS. But game is fun!


I can't seem to scroll the country list! Firefox 98 on macOS 12.2.


Add a link to a map maybe? instead of "more information"


OK I really like this one, I'm learning about economies...



I won at 2nd try. First Italy, then Sweden.


Full of bugs. HN users are not testers.


One question per day? Really stupid...


Sweden


Nice!


how does it work?


this is great


test


I feel the need to brag that I guessed Sweden on the first try. I think that means the product is working!


How many boring wordle clones are you sheep going to upvote? Wordle sucks


Remove the "trade" theme. Put a random picture from Google Street View at the top and give geoguessr a run for their money.


That's a quite good idea for another Wordle (/Worldle/Globle/...) clone, but i think it could be a separate project to this one.


No you


Nice. Easy however to guess the country if you check the code. Sharing the results doesn't have much value because of that. src="https://oec.world/en/visualize/embed/tree_map/hs92/export/sw..."




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: