Hello everyone.
I have just started learning Ruby and I am trying to code a basic
scissors-stone-paper program. The program runs (see attachment), but
doesn’t give the
correct output. Can anyone help me?
Hi, Flor -
Next steps:
I suggest that you use the time-honored method of adding print
statements in your code, such as:
puts 'C: ' + computer_choice
puts 'U: ' + user_choice
You should also trap out any user response other than the three words
you accept, because your boolean tests will fall through incorrectly if
a word which is not known is entered.
Have fun!