The following is the "rock, paper, scissors" game. The user has to enter initials (r, p, s) instead of the full words to play the game. Can anyone change the code so that full words be inserted?
why in the heck would a user want to type all those letters to play? r/p/s seems much more user friendly.
regardless change line 10 to
string p1,p2
and check
if (p1 == "rock") //you can toupper in a transform etc to ensure all possible inputs of the letters "RoCk" work if you want to be robust