Changeset 126

Show
Ignore:
Timestamp:
03/25/04 22:23:22 (5 years ago)
Author:
ug
Message:

Search in variations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/devel/algosPY.py

    r125 r126  
    566566            whereAreWe = [0] 
    567567             
    568             while movelistIndex < endMovelist and counter <= self.movelimit
    569  
     568            while movelistIndex < endMovelist and (counter <= self.movelimit or self.branchpoints)
     569                 
    570570                if movelist[movelistIndex] & BRANCHPOINT: 
    571571                    whereAreWeCopy = copy(whereAreWe) 
     
    580580                    if not patternList.nextMove: 
    581581                        for m in dicts.keys(): 
    582                             if dicts[m].has_key('found')
     582                            if dicts[m].has_key('found') and dicts[m]['found'] <= self.movelimit
    583583                                if patternList.get(m[0]).colorSwitch: numOfSwitched += 1 
    584584                                if patternList.get(m[0]).colorSwitch and showColorSwap: 
     
    611611                        if Xinterv[m][0] <= x < Xinterv[m][1] and Yinterv[m][0] <= y < Yinterv[m][1]: 
    612612 
    613                             if dicts[m].has_key('found'):   # so (x,y) is the continuation 
     613                            if dicts[m].has_key('found') and dicts[m]['found'] <= self.movelimit: 
     614                                # so (x,y) is the continuation 
     615 
    614616                                hit, label, contLabelsIndex, switched =\ 
    615617                                     patternList.updateContinuations(m[0], x, y, invco, 
     
    639641                            elif dicts[m].has_key('foundInitial'): 
    640642 
    641                                 print 'look at contlist', (x,y,co), contList[m][contListIndex[m]] 
    642                                  
    643643                                if (x, y, co) == contList[m][contListIndex[m]]: 
    644644                                    contListIndex[m] += 1 
    645                                     print 'ok' 
    646645                                    if contListIndex[m] == len(contList[m]): 
    647646                                        dicts[m]['found'] = counter 
     
    743742 
    744743            # check for hits with no continuation: 
    745                      
     744 
    746745            if not patternList.nextMove: 
    747746                for m in dicts.keys(): 
    748                     if dicts[m].has_key('found')
     747                    if dicts[m].has_key('found') and dicts[m]['found'] <= self.movelimit
    749748                        if patternList.get(m[0]).colorSwitch: numOfSwitched += 1 
    750749                        if patternList.get(m[0]).colorSwitch and showColorSwap: 
  • 06/devel/searchPY.py

    r125 r126  
    367367                        elif self.branchpoints: 
    368368                            for algo in algolist: algo.endOfVariation_process() 
    369                              
     369                            print 'eov process' 
    370370                            cursor.currentN, b, whichVar = self.branchpoints.pop() 
    371371                            if whichVar+2 < cursor.noChildren():