Question: java or C++ rps This method simulates the playing of one round of CMSC 131 Rock Paper Scissors. In this strange version of the game,

java or C++
rps This method simulates the playing of one round of CMSC 131 Rock Paper Scissors. In this strange version of the game, if both players have the same hand gestures, the return value is 1. If they have different hand gestures, the return value is a 7. If at least one player, provides a string argument that is anything other than rock, paper, or scissors, the return value is -1. The method should not be case-sensitive. For example, rock, ROCK, Rock, and Rock are all valid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
