Hacker News new | ask | show | jobs
by tan-z-tan 1022 days ago
Created GitHubGuessr: guess the repo from code snippets. Surprisingly challenging. Thoughts?
4 comments

I would suggest to maybe replace the dropdown list with 12 or 10 tiles instead. would make navigation a bit easier (and the difficulty level less brutal, although that might just be me!)

this is a great game by the way! There might be scope for grouping the repos broadly by language. so when faced with some javascript code, the list of possible answers the user gets to pick from are all javascript-y repos. but this ofcourse makes it easier (maybe too easy).

The idea of presenting it with tiles is interesting. It can also avoid including too similar repositories. I'm currently working on grouping by language or theme. Thanks for the feedback!
Aw snap! I had this exact idea last year but didn’t build it yet. See GitShuffle here https://blog.waleson.com/2022/11/things-i-didnt-build-yet.ht... I even bought gitshuffle.com

Great to see it in a working version!

I think there’s serious potential in this if you do it on your team’s own code. It would be a fun game to play with your colleagues on a Friday afternoon.

Definitely should include more repos, its a little imbalanced towards web dev
Yeah, If you have any recommends, please let me know. I had ChatGPT help me create a popular repos.
Do what GeoGuessr (kinda) did and let the community help! For example, I can probably come up with a few repos (you can check them for star count or similar to ensure theyre not too obscure).
It is quite challenging. I think giving a bit more context would bring it within an enjoyable range; e.g. showing the entire file, including the full path
Just like in geoguessr you could have different game modes. Or maybe you can move choose to step through the repository (up in file, down in file, up to parent directory, etc) but lose points/seconds the more of the code you view.
Thanks! Displaying the file path is a good idea. We just need to be careful not to give away spoilers through the file path.