Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Someone has probably already written some JS that plays the game automatically.

The way I'd do it is 1) track the current turn, 2) look up the city's coordinates using a reverse geocoder like OSM's Nominatim[1], and 3) draw a marker at the location using Leaflet.

[1]: http://wiki.openstreetmap.org/wiki/Nominatim




Nicely done! I'm not that good at JS to be honest :P




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

Search: