Ejemplo n.º 1
0
class Application(object):
    def __init__(self):
        self.client = GameClient("amara")
        self.client.announce()

    def run(self):
        shell = InteractiveShell(banner="Welcome to GTR v0.1", prompt="GTR> ")
        declare = Declare(self.client)
        add = AddCard(self.client)
        show = Display(self.client)
        shell.add_command(show)
        shell.add_command(declare)
        shell.add_command(add)
        shell.run()
Ejemplo n.º 2
0
 def __init__(self):
     self.client = GameClient("amara")
     self.client.announce()