Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 paper
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started