text-based ui in designing pokerapp we have also developed specification for generic pokerinterface class our interface must support the methods for displaying informationsetmoneysetdiceand showresult it must also have methods that allow for input from the userwanttoplayand choosedice these methods can be implemented in many different waysproducing programs that look quite different even though the underlying modelpokerappremains the same usuallygraphical interfaces are much more complicated to design and build than text-based ones if we are in hurry to get our application runningwe might first try building simple text-based interface we can use this for testing and debugging of the model without all the extra complication of full-blown gui firstlet' tweak our pokerapp class bit so that the user interface is supplied as parameter to the constructor class pokerappdef __init__(selfinterface)self dice dice(self money self interface interface then we can easily create versions of the poker program using different interfaces now let' consider bare-bones interface to test out the poker program our text-based version will not present finished applicationbut ratherit provides minimalist interface solely to get the program running each of the necessary methods can be given trivial implementation here is complete textinterface class using this approachtextpoker class textinterfacedef __init__(self)print("welcome to video poker "def setmoney(selfamt)print("you currently have ${ format(amt)def setdice(selfvalues)print("dice:"valuesdef wanttoplay(self)ans input("do you wish to try your luck"return ans[ in "yydef close(self)