Changeset 125
- Timestamp:
- 03/25/04 21:22:05 (5 years ago)
- Location:
- 06/devel
- Files:
-
- 2 modified
-
algosPY.py (modified) (2 diffs)
-
searchPY.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
06/devel/algosPY.py
r124 r125 569 569 570 570 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]) 573 574 self.branchpoints.append((deepcopy(dicts), deepcopy(dictsNO), 574 575 deepcopy(contList), deepcopy(contListIndex), counter, 575 copy(whereAreWe)))576 whereAreWeCopy)) 576 577 movelistIndex += 2 577 whereAreWe.append(0)578 578 continue 579 579 elif movelist[movelistIndex] & ENDOFVARIATION: … … 589 589 print whereAreWe 590 590 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 597 595 movelistIndex += 2 598 596 continue -
06/devel/searchPY.py
r124 r125 363 363 for algo in algolist: algo.branchpoint_process() 364 364 self.branchpoints.append((cursor.currentN, b.copy(), 0)) 365 365 print 'branchpoint' 366 366 if not cursor.atEnd(): cursor.next() 367 367 elif self.branchpoints:
