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