Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
A snappy "guess the flag" game with no trackers etc. (myyc.dev)
2 points by mxxc on April 21, 2024 | hide | past | favorite | 4 comments


Minor issue: sometimes several "countries" (not actually countries, but dependent territories) have the same flag, but the game only accepts one answer as valid.


that's my favourite feature :)


Solver:

window.setInterval(() => { var g=currentFlag.commonName; checkGuess(g); document.getElementById('search-input').value = g;}, 600);


Nice, but I wrote one 10x as fast:

window.setInterval(() => { var g=currentFlag.commonName; checkGuess(g); document.getElementById('search-input').value = g;}, 60);

/s




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

Search: