Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: A Multiplayer Geography Game Using WebSockets.
http://imgur.com/a/l4n85
Method:
- grab cites.db from repo and dump cities to file with sqlite
- use perl to convert data to json
- use dev console to import cities object
- one quick js function to get called when websockets gives us a 'new_turn' message that sends a 'answer' message with data from our lookup table
I know I cheated, but for me this was super fun. (I never make it to the top of a score board in videos games without some sort of hackery involved).
There are no comments on this comment yet.
http://imgur.com/a/l4n85
Method:
- grab cites.db from repo and dump cities to file with sqlite
- use perl to convert data to json
- use dev console to import cities object
- one quick js function to get called when websockets gives us a 'new_turn' message that sends a 'answer' message with data from our lookup table
I know I cheated, but for me this was super fun. (I never make it to the top of a score board in videos games without some sort of hackery involved).