''' * Program or Lab #: Insert assignment name * * Programmer: Insert your name * * Due Date: April 15, 2018 * * COMP141, Spring 2018 * * Pledge: I have neither given nor received unauthorized aid * on this program. * * Description: Insert a brief paragraph describing the program * * Input: Insert a brief description of user inputs, or "None" if * there is no user input * * Output: Insert a brief description of the program output * ''' import random # make_puzzle_string takes a secret phrase and a string representing # the letters that Player 2 has already guessed in the game. It # returns a "puzzle string," which is just the secret phrase with # all the non-guessed letters replaced with underscores. Spaces # remain as spaces in puzzle strings. # # Parameters: secret, a string with the secret phrase in it. # guessed_letters, a string with all of the letters guessed # so far in the puzzle. This string may be empty, indicating # no letters have been guessed yet. # Returns: the secret phrase with all the guessed letters transformed # into underscores. # # Example: make_puzzle_string("computer science", "cse") would return # the puzzle string "c_____e_ sc_e_ce" # Example: make_puzzle_string("computer science", "") wouuld return # the puzzle string "________ _______" def make_puzzle_string(secret, guessed_letters): return "" # REMOVE THIS LINE WHEN YOU BEGIN CODING # count_letter counts the number of times a given letter appears in a # secret phrase. # # Parameters: secret, a string with a secret phrase in it. # letter, a one-character string with the letter to count. # Returns: an integer representing the number of times the letter was # found in the secret phrase. def count_letter(secret, letter): return "" # REMOVE THIS LINE WHEN YOU BEGIN CODING def main(): # Here is pseudocode to help you: # Ask the user to enter a secret phrase. # Make a string variable to store all the guessed letters (starts empty). # Make an integer variable to store the amount of money won. # Keep looping until the puzzle is solved: # Show the puzzle. # Show how much money the player has so far. # Spin the wheel; show how much consonants are worth. # Let the player guess a letter. Use input validation to prevent # the player guessing a letter that they've guessed before. # Add the letter to the string containing the guessed letters. # Tell the player if their letter isn't in the puzzle. # Tell the player how much money they get if their letter is # a consonant, or how much money they are charged if it's # a vowel. # When the game is over, tell the player how much money they won. main()