예제 #1
0
파일: killing.py 프로젝트: DanSGraham/code
 def getAction(self):
     p = self.game.getKilling(self.color)
     if len(p) > 0:
         return [self.color, choice(p)]
     else:
         return RandomGomokuPlayer.getAction(self)
예제 #2
0
 def __init__(self, module, *args, **kwargs):
     RandomGomokuPlayer.__init__(self, *args, **kwargs)
     self.module = module
     if self.greedySelection:
         self.temperature = 0.
예제 #3
0
 def __init__(self, module, *args, **kwargs):
     RandomGomokuPlayer.__init__(self, *args, **kwargs)
     self.module = module
     if self.greedySelection:
         self.temperature = 0.
예제 #4
0
 def getAction(self):
     p = self.game.getKilling(self.color)
     if len(p) > 0:
         return [self.color, choice(p)]
     else:
         return RandomGomokuPlayer.getAction(self)