Exemplo n.º 1
0
 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:")
Exemplo n.º 2
0
 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:")
Exemplo n.º 3
0
 def __init__(self, strategy):
     self.game = Game()
     self._parser = Parser(self.game)
     self._planner = Planner.create(strategy, self.game, argv[1:])
Exemplo n.º 4
0
 def __init__(self, strategy, params):
     self.game = Game()
     self._parser = Parser(self.game)
     self._planner = Planner.create(strategy, self.game, params)