My teacher wants the user to enter in their choices with characters instead of numbers.
R - Rock
P - Paper
S - Scissors.

After the user enters R for their choice, what would I use to convert the character to a number (int)? Can i use a switch?

Was trying to use if statements like:

Code:
if (guess == R)
              {
               userGuess = 1;
              }
if (guess == P)
              {
               userGuess = 2;
              }
if (guess == S)
              {
               userGuess = 3; 
              }