Question: Please solve this problem: skeleton code provided at the bottom and also output examples import random def main(): winning_game_score = 75 number_of_symbols = 36 player1_name
Please solve this problem: skeleton code provided at the bottom and also output examples 













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 In this assignment, you will develop the Dadi game which is a two person dice throwing game. The game uses four dice and each player has turns until one of the players reaches a total score of 75 or more. Note: initially both players start with 0 points One turn consists of: The player rolls all four dice. If any 1's are rolled, the turn is over and the player scores Ofor this turn. If no 1's are rolled, the player has the option to stop and have the points added to the player's total score, or to continue rolling (and accumulating points), with one less dice, until either the player decides to stop, keep the accumulated sum of the dice and end the turn, or the player rolls a 1and therefore the turn ends and the player scores Ofor the turn, or, the player has only one dice left (because the player has already chosen to roll agairn three times and never rolled a 1) Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
