Question: Name: wins _ rock _ scissors _ paper Parameters: 2 strings Return: a boolean value Description: this function is passed two strings. Each of the

Name: wins_rock_scissors_paper
Parameters: 2 strings
Return: a boolean value
Description: this function is passed two strings. Each of the two strings are going to be one of 3 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 3 items. Winner is determined by the following rules
rock beats scissors
paper beats rock
scissors beats paper

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!