r/programminghorror • • Sep 25 '26

Javascript Rock paper scissors

Post image

I'm way too proud of this solution haha

287 Upvotes

27 comments sorted by

View all comments

Show parent comment

3

u/robin_888 Sep 26 '26

I'd let the player input whatever they want, ignore it and just output "You win!", "You lose" or "Draw" with 1/3 probability each.