Changeset 125

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

Jump to macth in variations

Location:
06/devel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • 06/devel/algosPY.py

    r124 r125  
    569569 
    570570                if movelist[movelistIndex] & BRANCHPOINT: 
    571                     if movelistIndex > 1 and not movelist[movelistIndex-2] & ENDOFVARIATION: 
    572                         whereAreWe.extend([0,0]) 
     571                    whereAreWeCopy = copy(whereAreWe) 
     572                    if movelistIndex < self.posTable[index]+4 or not movelist[movelistIndex-2] & ENDOFVARIATION: 
     573                        whereAreWeCopy.extend([0,0]) 
    573574                    self.branchpoints.append((deepcopy(dicts), deepcopy(dictsNO), 
    574575                                              deepcopy(contList), deepcopy(contListIndex), counter, 
    575                                               copy(whereAreWe))) 
     576                                              whereAreWeCopy)) 
    576577                    movelistIndex += 2 
    577                     whereAreWe.append(0) 
    578578                    continue 
    579579                elif movelist[movelistIndex] & ENDOFVARIATION: 
     
    589589                                    print whereAreWe 
    590590                    dicts, dictsNO, contList, contListIndex, counter, whereAreWe = self.branchpoints.pop() 
    591                     if movelist[movelistIndex+2] & BRANCHPOINT: 
    592                         whereAreWe[-2] += 1 
    593                         whereAreWe[-1] = 0 
    594                         print 'x', whereAreWe 
    595                     else: 
    596                         ... 
     591                     
     592                    whereAreWe[-2] += 1 
     593                    # assert whereAreWe[-1] == 0 
     594                         
    597595                    movelistIndex += 2 
    598596                    continue 
  • 06/devel/searchPY.py

    r124 r125  
    363363                            for algo in algolist: algo.branchpoint_process() 
    364364                            self.branchpoints.append((cursor.currentN, b.copy(), 0)) 
    365  
     365                            print 'branchpoint' 
    366366                        if not cursor.atEnd(): cursor.next() 
    367367                        elif self.branchpoints: