def __init__(self, strategy): try: self.game = Game(id='2') self._parser = Parser(self.game) self._planner = Planner(strategy, self.game) except: logging.exception("Error while constructing Bot:")
def __init__(self, strategy): try: self.game = Game(id='1') self._parser = Parser(self.game) self._planner = Planner(strategy, self.game) with open('botout-1.txt', 'w') as out: out.write('hi\n') except: logging.exception("Error while constructing Bot:")
def __init__(self, strategy): self.game = Game() self._parser = Parser(self.game) self._planner = Planner.create(strategy, self.game, argv[1:])
def __init__(self, strategy, params): self.game = Game() self._parser = Parser(self.game) self._planner = Planner.create(strategy, self.game, params)