notice the call to interface close at the bottom this will allow us to do any necessary cleaning up such as printing final message for the user or closing graphics window most of the work of the program has now been pushed into the playround method let' continue the top-down process by focusing our attention here each round will consist of series of rolls based on these rollsthe program will have to adjust the player' score def playround(self)self money self money self interface setmoney(self moneyself dorolls(resultscore self dice score(self interface showresult(resultscoreself money self money score self interface setmoney(self moneythis code only really handles the scoring aspect of round anytime new information must be shown to the usera suitable method from interface is invoked the $ fee to play round is first deducted and the interface is updated with the new amount of money remaining the program then processes series of rolls (dorolls)shows the user the resultand updates the amount of money accordingly finallywe are down to the nitty-gritty details of implementing the dice rolling process initiallyall of the dice will be rolled then we need loop that continues rolling user-selected dice until either the user chooses to quit rolling or the limit of three rolls is reached let' use local variable rolls to keep track of how many times the dice have been rolled obviouslydisplaying the dice and getting the list of dice to roll must come from interaction with the user through interface def dorolls(self)self dice rollall(roll self interface setdice(self dice values()toroll self interface choosedice(while roll and toroll ![]self dice roll(torollroll roll self interface setdice(self dice values()if roll toroll self interface choosedice(at this pointwe have completed the basic functions of our interactive poker program that iswe have model of the process for playing poker we can' really test out this program yethoweverbecause we don' have user interface