예제 #1
0
 def __init__(self, initialgamestate, aistonetype, plydepth,
              tilesearchrange, analyzerparameter):
     BaseAI.__init__(self, initialgamestate, aistonetype)
     self.EnemyStoneType = "black" if self.AIStoneType == "white" else "white"
     self.PlyDepth = plydepth
     self.OpenSearchRange = tilesearchrange
     self.analyzerparameter = analyzerparameter
예제 #2
0
    def __init__(self, initialgamestate, aistonetype, timelimit, remote=True):
        BaseAI.__init__(self, initialgamestate, aistonetype)
        self.EnemyStoneType = "black" if self.AIStoneType == "white" else "white"
        self.This2ActuatorQ = multiprocessing.Queue()
        self.Actuator2ThisQ = multiprocessing.Queue()
        self.TimeLimit = timelimit
        self.ReportHook = lambda x: None
        self.Process = None
        self.datalist = []
        self.PID = None

        self.Remote = remote
예제 #3
0
    def __init__(self,
                 initialgamestate,
                 aistonetype,
                 plydepth,
                 tilesearchrange,
                 use_xta,
                 xta_coefficient,
                 remote=True):
        BaseAI.__init__(self, initialgamestate, aistonetype)
        self.EnemyStoneType = "black" if self.AIStoneType == "white" else "white"
        self.PlyDepth = plydepth
        self.This2ActuatorQ = multiprocessing.Queue()
        self.Actuator2ThisQ = multiprocessing.Queue()
        self.OpenSearchRange = tilesearchrange

        self.ReportHook = lambda x: None
        self.Process = None
        self.datalist = []
        self.PID = None
        self.Use_XTA = True if use_xta else False
        self.XTA_Coefficient = xta_coefficient

        self.Remote = remote