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

Is this a troll? I immediately get hit with a "You win!" popup telling me I took 6 guesses without even getting to play.


Sorry!! I made some really fatal changes a few hours ago, that's why it wasn't working. You can try now.


Just to clarify though, there's not meant to be any indicator for "right letter, wrong position"? If there is, it's not working.


Strange, works for me, and I have played it on three different days now... However it's a project of another HN user that they only mentioned in another thread, so it might still be work in progress.


It's ..... based on your IP. But not only is it based on your IP, some IPs are buggy and just automatically "win" with 6 guesses.

Looking at the javascript, the author is obviously very new to web development, so probably a bug on their side.

Edit: yeah, a bug on the backend as I suspected.


Or they didn't want to use cookies for fear of GDPR :) ? But I'm not sure you can get off the GDPR hook by collecting IP addresses instead of setting cookies actually...


I wanted to view user's activities to make sure the puzzles aren't too easy or too hard. But seems using IP to do this is wrong.


I don't think there's anything wrong with storing the game state on the server, but you should use a session cookie rather than making it based on IP.


You can’t. It’s worse, in fact, because users can’t delete them.


Yes, that's why I was moving to LocalStorage based model but this created two different sources of truth which was the whole cause of bug. I'll fix all the issues and delete all data in cloud ASAP. :)


Thanks for posting this!! :)


Likewise




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

Search: