at this pointwe could try out the dice class to make sure that it is working correctly here is short interaction showing some of what the class can dofrom dice import dice dice( values([ score(('two pairs' roll([ ] values([ roll([ ] values([ score(('full house' we would want to be sure that each kind of hand scores properly implementing pokerapp now we are ready to turn our attention to the task of actually implementing the poker game we can use top-down design to flesh out the details and also suggest what methods will have to be implemented in the pokerinterface class initiallywe know that the pokerapp will need to keep track of the dicethe amount of moneyand some user interface let' initialize these values in the constructor class pokerappdef __init__(self)self dice dice(self money self interface pokerinterface(to run the programwe will create an instance of this class and call its run method basicallythe program will loopallowing the user to continue playing hands until he or she is either out of money or chooses to quit since it costs $ to play handwe can continue as long as self money > determining whether the user actually wants to play another hand must come from the user interface here is one way we might code the run methoddef run(self)while self money > and self interface wanttoplay()self playround(self interface close(