def __init__(self, size, **args): self.setArgs(**args) self.size = size self.task = CaptureGameTask(self.size) self.env = self.task.env if self.presetGamesProportion > 0: self.sPos = self._fixedStartingPos() self.cases = int(len(self.sPos) / self.presetGamesProportion) else: self.cases = 1 self.maxmoves = self.size * self.size self.minmoves = 3
def __init__(self, *args, **kargs): CaptureGameTask.__init__(self, *args, **kargs) self.size = self.env.size # the maximal handicap given is a full line of stones along the second line. self.maxHandicaps = (self.size - 2) * 2 + (self.size - 4) * 2