def getAction(self): p = self.game.getKilling(self.color) if len(p) > 0: return [self.color, choice(p)] else: return RandomGomokuPlayer.getAction(self)
def __init__(self, module, *args, **kwargs): RandomGomokuPlayer.__init__(self, *args, **kwargs) self.module = module if self.greedySelection: self.temperature = 0.