コード例 #1
0
ファイル: gomokutask.py プロジェクト: RaVbaker/pybrain
 def performAction(self, action):
     EpisodicTask.performAction(self, action)
     if not self.isFinished():
         EpisodicTask.performAction(self, self.opponent.getAction())            
コード例 #2
0
ファイル: capturetask.py プロジェクト: chenzhikuo1/OCR-Python
 def performAction(self, action):
     EpisodicTask.performAction(self, action)
     if not self.isFinished():
         EpisodicTask.performAction(self, self.opponent.getAction())
コード例 #3
0
ファイル: gomokutask.py プロジェクト: RaVbaker/pybrain
 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
ファイル: capturetask.py プロジェクト: chenzhikuo1/OCR-Python
 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())