How is the game to be played, between 2 users or between the user and the computer?
I have a solution for either. The solution lies server side
For single player, pulse whether the user selected r,p or s and make the server select a random item as well, apply the rules and voila.
For 2 players, its more complicated. I have an idea but its long. Long story short, pulse what both users have selected to the server and tell it to decide who won
If you dont know who pulsed it, you dont know who wins. No cheating
So, what do you think?