def new_game(self, state): """Initialize the bot with a new game.""" self.game = Game(state) print "I am player", print self.game.hero.ident print "My position", print self.game.hero.pos self.expected_pos = self.game.hero.pos self.prev_mines = 0 self.prev_gold = 0 self.prev_life = 100 ClassifierSystem.new_game(self)
def finish_game(self): ClassifierSystem.finish_game(self)
def __init__(self, key = "NONE"): """Initialize the bot's classifiers.""" self.key = key self.input_interface = [] ClassifierSystem.__init__(self) self.action = 'Wait'