Changeset 148

Show
Ignore:
Timestamp:
04/08/04 23:00:44 (5 years ago)
Author:
ug
Message:

Try to fix whereAreWe in algosPY.py (still buggy, though)

Files:

Legend:

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

    r147 r148  
    595595                             # format: list [n1, m1, n2, m2, n3 ..., ni], where 
    596596                             # the current position can be reached by 
    597                              # going forward n1 times, then choosing the m1st variation, 
    598                              # then going forward n2 times, then choosing the m2nd variation, 
     597                             # going forward n1 times, then choosing the m1-th variation, 
     598                             # then going forward n2 times, then choosing the m2-th variation, 
    599599                             # etc. 
    600600                             # we have counter == sum_j nj 
     
    606606                    if movelistIndex < self.posTable[index]+4 or not movelist[movelistIndex-2] & ENDOFVARIATION: 
    607607                        whereAreWe[-1] -= 1 
    608                         whereAreWeCopy.extend([0,0]) 
     608                        whereAreWeCopy.extend([0,-1]) 
    609609                    self.branchpoints.append((deepcopy(dicts), deepcopy(dictsNO), 
    610610                                              deepcopy(contList), deepcopy(contListIndex), counter,