Live data from Hacker News

Show HN: A game that tests how well you know your local area

backofyourhand.com

161–170 of 262 posts

Re: Show HN: A game that tests how well you know your local area

#161

How much does this cost to run with the whole Mapbox thing?

First I used OpenStreetMap tiles (and no Mapbox) but the no-streets one was discontinued. So then I created a custom map layer with Maptiler and used Mapbox-GL because Maptiler's free plan only allows that.

I use Mapbox and Maptiler on the free plan. They both have limits but I haven't ran into them yet. And I've seen a LOT of page views today.

There are probably features I don't use that trigger limits more easily though.

Re: Show HN: A game that tests how well you know your local area

#162
post #160

Looks great, but I'm curious about the performance of this. Does it pull vector tiles? Did you build those vector tiles yourself? Seems like your server has a hard time... I picked my neighborhood since your app located me 1000km away from where I live. I started the thing and it backed away from the former incorrect coordinates.

It's "serverless". I don't have a web server of my own and there's no database.

The first iteration was very fast. I got 100 in every category in Lighthouse (but that doesn't cover everything of course). It used OSM raster map tiles. The no-streets map tiles were discontinued so I had to switch to using custom Maptiler map layers via Mapbox. Still more than fast enough IMO. I aggressively cache the Overpass data per area.

Then I migrated to Cloudflare pages to access their geolocation information via an edge handler. That slowed down visits without a LatLng in the URL because it does a couple of redirects.

Then today I had to fight multiple fires due to traffic and usage limits. I managed to workaround all the issues as they arose but the routing of page loads isn't ideal right now. Cloudflare are raising limits for me at midnight UTC so I'll be moving back to the faster setup again.

Re: Show HN: A game that tests how well you know your local area

#163
post #147

Earlier quoted context omitted.

Thanks for the feedback. I'm considering adding difficulty modes or a way to change the radius. I'd rather that people wouldn't get a perfect score too easily though

I think it would be useful to use actual boundries of villages or neighbourhoods instead of circles. Not sure how difficult that is. (the required data is in OSM, at least in germany)

The data is there but it's difficult to make everyone happy. I don't have a backend but if I did, a leaderboard per town would be nice

Re: Show HN: A game that tests how well you know your local area

#166

Earlier quoted context omitted.

I noticed that some areas pop up more than others. Is there like a difficulty score that you are calculating in the back? Making it easier is definitely a challenge, I’d guess. The major landmarks simply matter more. But, I LOVED playing round after round in Amsterdam, learning more about a city I definitely don’t know like the back of my hand! MCQs for marked areas would be nice— guessing the name of a place given a…

Nah it's pretty dumb right now. All I do is filter out some names like "Alley" and join same-named streets. I don't want to make it too easy but I have gotten a lot of feedback today about difficulty (area boundary/radius, street length, etc) so I'll make some changes and hopefully I can keep going in the right direction. Another idea I had was to add hints like maybe you could have a special button you could press o…

If you simply calculate the average error, you could A/B test the effect of a version with reduced difficulty (e.g., with areas with have >5-10% success) vs random. I imagine people will play longer when they get some correct. What difficulty level do you think is appealing? I was at about 5-10%. I think 50% would be more engaging. By improving difficulty, you’d have the side effect of focusing more on more important locations.

Again, it’s super.

Re: Show HN: A game that tests how well you know your local area

#168

Earlier quoted context omitted.

Thank you :) This has come up so much. I'll be adding it, thanks!

Another thing is that it seems you are sampling with replacement. I placed a circle in a rural area (where I grew up) and in one round I got the same street for 3/5 of the selections (and there were 10+ streets within the radius).

Thanks, will look into it!

Re: Show HN: A game that tests how well you know your local area

#169

Hi HN, I made Back Of Your Hand, a map-based game where you're given random street names and you have to locate them on the map. You can play solo or compete with friends on other devices. I made it for my dad as a Christmas present. It also gave me an opportunity to learn about geocoding, etc. Tech: serverless, Leaflet, Turf, Svelte, TypeScript, Cloudflare pages. I tried to use as many open / free tools as I could.…

I found the game easy in an urban area where I've lived for only three years, but impossible in the rural area where I grew up. It seems to pick main roads in urban areas but in rural areas I get random side roads and cul-de-sacs. The circle should be much bigger in rural areas because people typically drive longer distances. Most of the roads I actually used were outside the circle.
Post reply on HN