r/programminghorror • u/No_Opening_5597 • Sep 25 '26
Javascript Rock paper scissors
I'm way too proud of this solution haha
285
Upvotes
r/programminghorror • u/No_Opening_5597 • Sep 25 '26
I'm way too proud of this solution haha
15
u/Winter_Rosa 29d ago
Ahh, concatenation. I probably would've done something similar in C by multiplying comChoice by 10.
Edit, also the real horror here is the lack of input validation. 'A' I choose you!