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

If someone plays a game with me with this, I'm totally going to be spending time between every turn in the Dev console figuring out a one-liner to reveal as-yet unturned cards...



Not possible, client-side doesn’t have the information


Flip the card really quickly (single animation frame), get data, boom. Maybe you'll get noticed, but probably only by someone who's equally sophisticated in detecting tricks.


I will add a chat which will show game log..and probably a optional turn "token" too


It could be done that server doesn't send the information what card it is until absolutely necessary, so you could not do that.


Cryptographers are really interested in card games as a model of information problems, so there are pre-existing algorithms for how to do stuff for card games in which different players have different information about the state, but everybody can prove to their satisfaction that the others aren't cheating - without a trusted server at all.

https://en.wikipedia.org/wiki/Mental_poker


Server is the single-source-of-truth and only share the info about card value/suit when clicking your own card or common cards


It is done on server-side




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: