This is a game of rock paper scissors with the CPU. The user is prompted to choose rock, paper, or scissor and then the CPU randomly selects one of the three. Afterwards the winner is outputted to the console. The main part of the code was the nested "if" statements to check for all the possible outcomes that could result between the user and the CPU.
Game of rock paper scissors; I used a random number generator to create random choices for the computer, I then turned these numbers to Strings once they had been picked. This allowed for me to randomly select "rock" "paper" or "scissors" for the computer, and then use those Strings to test if the player or computer won the round.