def __init__(self, module, *args, **kwargs):
     RandomCapturePlayer.__init__(self, *args, **kwargs)
     self.module = module
     if self.greedySelection:
         self.temperature = 0.
示例#2
0
 def getAction(self):
     p = self.game.getAcceptable(self.color)
     if len(p) > 0:            
         return [self.color, choice(p)]
     else:
         return RandomCapturePlayer.getAction(self)
示例#3
0
 def __init__(self, module, *args, **kwargs):
     RandomCapturePlayer.__init__(self, *args, **kwargs)
     self.module = module
     if self.greedySelection:
         self.temperature = 0.
示例#4
0
 def getAction(self):
     p = self.game.getAcceptable(self.color)
     if len(p) > 0:
         return [self.color, choice(p)]
     else:
         return RandomCapturePlayer.getAction(self)