""" Program: CS115 Project 2 Author: Your name here. Description: TBD """ from graphics import * from hog_helper import * def name_roll(roll_faces): '''Takes a list of faces that were shown, and assigns the roll one or more names. Available roll names are the following: ['Sider', 'Pig Out', 'Razorback', 'Trotter' 'Snouter', 'Leaning Jowler', 'Double Razorback', 'Double Trotter', 'Double Snouter', 'Double Leaning Jowler'] For example: * The throw ['A', 'A'] would yield the list ['Sider'] * The mixed combo ['C', 'E'] would yield the list ['Razorback', 'Snouter'] Args: roll_faces (list): The list of faces shown by the die. Returns: list: a list of names. ''' pass def score_roll(roll_names): '''Scores a roll based on its name. Args: roll_names (list): The list of names associated with the roll. Returns: int: The score associated with that rolls name. ''' pass def main(): # This is what Part A would look like, if you had implemented it # using the name_roll and score_roll functions. # Re-factors your Part A code, as a starting place for Part B. score = -1 while (score != 0): r1 = input('Enter pig 1: ') r2 = input('Enter pig 2: ') d = [r1, r2] names = name_roll(d) score = score_roll(names) print("Faces are", d) print("Roll is", names) print("Score is", score) print() main()