def instructions(response):
    instruction_string = "Choose rock, paper, or scissors from the buttons. "
    instruction_string += "The computer will then choose a move. "
    instruction_string += "Rock beats scissors, scissors beats paper, and paper beats rock."

    response = response.lower()
    if response == "yes":
        rps.print_instructions(instruction_string)
Example #2
0
def instructions(response):
    # Add to instruction_string so that it contains information on
    # how to play rock-paper-scissors
    instruction_string = "Choose rock, paper, or scissors from the buttons. "
    instruction_string += "The computer will then choose a move. "
    instruction_string += "Rock beats scissors, scissors beats paper, and paper beats rock."

    # Use a string method to make response all one case
    response = response.lower()
    if response == "yes":
	rps.print_instructions(instruction_string)
Example #3
0
def instructions(response):
    # Add to instruction_string so that it contains information on
    # how to play rock-paper-scissors
    instruction_string = "Choose rock, paper, or scissors from the buttons. "
    instruciton_string = "The computer will then choose a move. "
    instruction_string = "Rock beats scissors, scissors beats paper, and paper beats rock. "

    # Use a string method to make response all one case
    response = response.lower()

    # Use an if statement to check if the response is "yes"
    if response == "yes":
       rps.print_instructions(instruction_string)