# textpoker.py
#    A text-based dice poker game using the PokerApp class.

class TextInterface:

    def __init__(self):
        print "Welcome to video poker."

    def setMoney(self, amt):
        print "You currently have $%d." % (amt)
        
    def setDice(self, values):
        print "Dice:", values

    def wantToPlay(self):
        ans = raw_input("Do you wish to try your luck? ")
        return ans[0] in "yY"

    def close(self):
        print "\nThanks for playing!"

    def showResult(self, msg, score):
        print "%s. You win $%d." % (msg,score)

    def chooseDice(self):
        return input("Enter list of which to change ([] to stop) ")

# Run the poker application using this interface
from pokerapp import PokerApp

inter = TextInterface()
app = PokerApp(inter)
app.run()
