Example #1
0
 def getAction(self):
     p = self.game.getKilling(self.color)
     if len(p) > 0:
         return [self.color, choice(p)]
     else:
         return RandomGomokuPlayer.getAction(self)
Example #2
0
 def getAction(self):
     p = self.game.getKilling(self.color)
     if len(p) > 0:
         return [self.color, choice(p)]
     else:
         return RandomGomokuPlayer.getAction(self)