Question: I need to write a program that outputs exactly as in the example below by only altering the undefined functions (marked in bold) in the

I need to write a program that outputs exactly as in the example below by only altering the undefined functions (marked in bold) in the below skeleton code:

import random

def main(): winning_game_score = 75 number_of_symbols = 36 player1_name = "Jerry" player2_name = "Antonella" player1_score = 0 player2_score = 0 current_player_number = random.randrange(1, 3) game_is_over = False welcome_to_game(player1_name, player2_name) while not game_is_over: print("+" * number_of_symbols) if current_player_number == 1: player1_score += have_a_turn(player1_name, player1_score) else: player2_score += have_a_turn(player2_name, player2_score) if game_has_finished(player1_score, player2_score, winning_game_score): game_is_over = True else: current_player_number = get_other_player_number(current_player_number) print("+" * number_of_symbols) print("Game is over: ", player1_score, player2_score) display_final_info(player1_name, player1_score, player2_name, player2_score, winning_game_score) #------------------------------------ # have_a_turn() #------------------------------------ def have_a_turn(player_name, player_score): score_this_turn = 0 number_of_dice = 4 turn_has_finished = False display_player_turn_info(player_name, player_score) while not turn_has_finished: dice_string = get_random_dice_string(number_of_dice) dice_display = get_dice_display_string(dice_string) if dice_string_contains_one(dice_string): print("The dice: ", dice_display, " Ooops, you rolled a one. ") score_this_turn = 0 turn_has_finished = True elif number_of_dice #------------------------------------ # welcome_to_game() #------------------------------------ def welcome_to_game(player1, player2): pass #------------------------------------ # display_player_turn_info() #------------------------------------ def display_player_turn_info(player_name, player_score): pass #------------------------------------ # display_turn_situation() #------------------------------------ def display_turn_options(number_of_dice, score_so_far): pass #------------------------------------ # get_random_dice_string() #------------------------------------ def get_random_dice_string(number_of_dice): return "" #------------------------------------ # get_dice_display_info() #------------------------------------ def get_dice_display_string(dice_string): return "" #------------------------------------ # dice_string_contains_one() #------------------------------------ def dice_string_contains_one(dice_string): return False #------------------------------------ # get_dice_total() #------------------------------------ def get_dice_total(dice_string): return 0 #------------------------------------ # get_user_selection() #------------------------------------ def get_user_selection(): return 0 #------------------------------------ # game_has_finished() #------------------------------------ def game_has_finished(player1_score, player2_score, game_score): return True #------------------------------------ # get_other_player_number() #------------------------------------ def get_other_player_number(current_player_number): return 0 #------------------------------------ # display_final_info() #------------------------------------ def display_final_info(player1_name, player1_score, player2_name, player2_score, game_score): number_of_symbols = 50 main()

I need to write a program that outputs exactly as in the

Example Output Th.e dice 232 Currently your score this turn is 10 Below is some example output produced by the completed program Your program must execute n the way described and the output should have the same format as the output below Tou may chooso to incroaso your score by rolling agaia with 3 dice 2. Eod turn? Enter selection (1 or 2)1 1 Jerry versus Antonella The dice: 116 0oops, you rolled a one. derry's turn. Current score: Antonella's tHE. Current score o The dice: 1 2 4 Ooops, you rolled one. Score this turni 0 The dice 2 24 Currently your score this turn is 14 You may choose to increase your score by rolling again vith 3 dice. -Roll again? The dice: 551 oops, you rolled a one. Seore this turn: 0 Score this turni o Currently your score this turn is 13 You nay choose to increase your score by rolling again with 3 dice in? Currently your score this turn is 12 You nay choose to increase your score by roiling Currently your score this turn is 20 1. Roll again? Tou may choose to incroase yous score by rolling agaln with 2 dice Enter selecticn (1 or 2) 1 The dice: 512 oope, yo rolled a one. Enter selection (1 or 2) Score this turni Currently your score this turn is 31 You nay choose to increase your score by rollisg The dice: 516 4 oops,you rolled a one again? nter selection (1 or 2)a 2 Jcrry's turn. current seat 14 Score this turni 31 ater selectien (1 or 2) 2 Jerry's turn. Current scores 14 Scoro this turn 26 The dice 55 2 3 Currently your score this turn is 15 Jerry turn. Current scores 14 The dice 2153 oops, you rolled a one Score this turn: 0 You nay choose to increase your score by rolling 1. Roll again? 2. End turn? Enter selection (1 ar 2): 1 The dice: 512 oop, yo rolled a one. The diece: 5 536 Currently your score this turn is 19 Score this turni Tou may choose to incroase yous score by rolling again with 3 dice Antonella's turn Current score 31 The dice: 16 44 0ops,you rolled a one The dice: 541 oops, you rolled a one Jerry's turn. Current seore: 14 The dice: 5 2 5 2 Currently your score this turn is 14 You may choose to increase your score by rolling again with 3 dice The dice: 1 1 2 6 Ooops, you rolled one. Roll again? Score this turns o Antonella"s ta. Current scorei 57 The diee:1 4 ooopa, you rolled one The dices 56 4 Currently your score this turn is 21 Score this turno You Bay choose to increase your score by rolling Antonella' tur. Current scores 3 agaln? The dic 2 5 2 Currently your score this turn is 13 Enter election (1 ar 2): 2 You may choose to increase your score by rolling Score this turni 21 2. End turn? Enter selectice or 2) 1 The vinneri ANTONELLA (78) Runner up: JerrY 14) The dice 5 2 6 Currently your score this turn is 26 You may choose to increase your score by rolling again with 2 dice 1. Roll again

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!