Changeset 126
- Timestamp:
- 03/25/04 22:23:22 (5 years ago)
- Files:
-
- 06/devel/algosPY.py (modified) (5 diffs)
- 06/devel/searchPY.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/devel/algosPY.py
r125 r126 566 566 whereAreWe = [0] 567 567 568 while movelistIndex < endMovelist and counter <= self.movelimit:569 568 while movelistIndex < endMovelist and (counter <= self.movelimit or self.branchpoints): 569 570 570 if movelist[movelistIndex] & BRANCHPOINT: 571 571 whereAreWeCopy = copy(whereAreWe) … … 580 580 if not patternList.nextMove: 581 581 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: 583 583 if patternList.get(m[0]).colorSwitch: numOfSwitched += 1 584 584 if patternList.get(m[0]).colorSwitch and showColorSwap: … … 611 611 if Xinterv[m][0] <= x < Xinterv[m][1] and Yinterv[m][0] <= y < Yinterv[m][1]: 612 612 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 614 616 hit, label, contLabelsIndex, switched =\ 615 617 patternList.updateContinuations(m[0], x, y, invco, … … 639 641 elif dicts[m].has_key('foundInitial'): 640 642 641 print 'look at contlist', (x,y,co), contList[m][contListIndex[m]]642 643 643 if (x, y, co) == contList[m][contListIndex[m]]: 644 644 contListIndex[m] += 1 645 print 'ok'646 645 if contListIndex[m] == len(contList[m]): 647 646 dicts[m]['found'] = counter … … 743 742 744 743 # check for hits with no continuation: 745 744 746 745 if not patternList.nextMove: 747 746 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: 749 748 if patternList.get(m[0]).colorSwitch: numOfSwitched += 1 750 749 if patternList.get(m[0]).colorSwitch and showColorSwap: 06/devel/searchPY.py
r125 r126 367 367 elif self.branchpoints: 368 368 for algo in algolist: algo.endOfVariation_process() 369 369 print 'eov process' 370 370 cursor.currentN, b, whichVar = self.branchpoints.pop() 371 371 if whichVar+2 < cursor.noChildren():
