-3

https://i.stack.imgur.com/3dtSz.png

https://i.stack.imgur.com/2ehmF.png

Simple Rock Paper Scissors game and i am trying to determine the winner by combining 2 strings so for example 00 is rock rock therefore a draw and 1-0 is paper and rock therefore the user wins not the computer however it keeps saying draw at the end i'm not sure what i am doing wrong

wjandrea
  • 28,235
  • 9
  • 60
  • 81
lujo
  • 1
  • The link to the next part of the code is in the bit where it says "enter image description here" – lujo Aug 12 '23 at 22:03
  • Welcome to Stack Overflow! Please take the [tour]. SO is a Q&A site, but there's no question here and it's not clear exactly what you need help with. Please read [How to ask and answer homework questions](//meta.stackoverflow.com/q/334822/4518341), make a [mre], and post your code as text, [not a picture](//meta.stackoverflow.com/q/285551/4518341). For more tips: [ask]. – wjandrea Aug 12 '23 at 22:20
  • Oops, I missed "it keeps saying draw at the end" (maybe cause of missing punctuation). In that case you should have asked about the line where the output starts to diverge from what you were expecting, i.e. the `if`. – wjandrea Aug 12 '23 at 22:32

0 Answers0