r/learnwebdev • • Jul 31 '20
Need help with my code?
I'm making a rock paper scissors game but I'm currently stuck on trying to get the users input to compare with the computers input here is a link to my git hub.
https://github.com/rsteward117/randy-s-rock-paper-scissors-game
3
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jul 31 '20
I was using rock as an example to see if it would work for when I compare it in the playround function I was working off another rock paper scissors game that I've made using strings and a prompt where the user would enter if he wanted to use rock paper or scissors so I copied and pasted some that code to this project now I'm trying to use buttons instead of stings and prompts, but I'm having trouble getting the my program to compare what the computers generateed as it's selection to which button the user click as his selection