def _oneGame(self, preset=None):
        self.env.reset()
        if preset != None:
            self.env._setStone(CaptureGame.BLACK, preset)
            self.env.movesDone += 1
            self.env.playToTheEnd(self.opponent, self.player)
        else:
            self.env.playToTheEnd(self.player, self.opponent)
        moves = self.env.movesDone
        win = self.env.winner == self.player.color
        if self.verbose:
            print(('Preset:', preset, 'T:', self.temp, 'Win:', win, 'after', moves, 'moves.'))
        res = 1 - self.numMovesCoeff * (moves - self.minmoves) / (self.maxmoves - self.minmoves)
        if win:
            return res
        else:
            return - res
takes no arguments
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/twoplayergames/tasks/relativetask.py/RelativeCaptureTask._oneGame--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/plugins/User/plugin.py/User.unidentify