Пример #1
0
 def performAction(self, action):
     EpisodicTask.performAction(self, action)
     if not self.isFinished():
         EpisodicTask.performAction(self, self.opponent.getAction())            
Пример #2
0
 def performAction(self, action):
     EpisodicTask.performAction(self, action)
     if not self.isFinished():
         EpisodicTask.performAction(self, self.opponent.getAction())
Пример #3
0
 def reset(self):
     self.switched = False
     EpisodicTask.reset(self)   
     if self.opponent.color == GomokuGame.BLACK:     
         # first move by opponent
         EpisodicTask.performAction(self, self.opponent.getAction())
Пример #4
0
 def reset(self):
     self.switched = False
     EpisodicTask.reset(self)
     if self.opponent.color == CaptureGame.BLACK:
         # first move by opponent
         EpisodicTask.performAction(self, self.opponent.getAction())