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()
def __init__(self): self.client = GameClient("amara") self.client.announce()