Question: Name: wins _ rock _ scissors _ paper Parameters: 2 strings Return: a boolean value Description: this function is passed two strings. Each of the
Name: winsrockscissorspaper
Parameters: strings
Return: a boolean value
Description: this function is passed two strings. Each of the two strings are going to be one of values:
rock
paper
scissors
The strings may have any casing. Rock, ROCK, roCK are all possible and valid.
The first string represents what the player threw in a game of rocks paper scissors. The second string represents what the opponent threw. This function returns true, if the player won, false if it was a tie or a lose.
In a game of rock, paper, scissors, each player chooses "throws" one of the items. Winner is determined by the following rules
rock beats scissors
paper beats rock
scissors beats paperplPpl
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
