def performAction(self, action): EpisodicTask.performAction(self, action) if not self.isFinished(): EpisodicTask.performAction(self, self.opponent.getAction())
def performAction(self, action): EpisodicTask.performAction(self, action) if not self.isFinished(): EpisodicTask.performAction(self, self.opponent.getAction())
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())
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())