Changeset 168
- Timestamp:
- 09/30/04 22:16:02 (4 years ago)
- Files:
-
- 06/devel/aglPY.py (modified) (1 diff)
- 06/devel/algosPY.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/devel/aglPY.py
r160 r168 579 579 progStart, progStart+progFirstInt*progSpan) 580 580 581 intervals = 0581 intervals = 1 582 582 583 583 # if numOfStones in pattern is large (in proportion to pattern size), use intervals 06/devel/algosPY.py
r167 r168 1187 1187 class Algo_intervals: 1188 1188 """ 1189 Note: with this algo, search in variations is currently not possible! 1190 1189 1191 moves: this is a (self.boardsize x self.boardsize) array which for 1190 1192 each point of the go board contains a list of stone … … 1543 1545 Bint = self.getUInterv(moves, moves1, index, x+a0, y+a1, 'X')[1] 1544 1546 Wint = self.getUInterv(moves, moves1, index, x+a0, y+a1, 'O')[1] 1545 if counter in [z[0] for z in Bint.data]: co = 'W' # !!! FIXME (cf. Algo_movelist.search) 1546 elif counter in [z[0] for z in Wint.data]: co = 'B' # !!! 1547 if counter in [z[0] for z in Bint.data]: co = 'W' # !!! FIXME (cf. Algo_movelist.search) ... don't understand this anymore 1548 elif counter in [z[0] for z in Wint.data]: co = 'B' # !!! but easy to check, just concerns the continuation 1547 1549 else: raise Exception # FIXME? 1548 1550 … … 1555 1557 numOfSwitched += switched 1556 1558 if showColorSwap and switched: 1557 result.append( str(currentUInterv.first())+label+'-')1559 result.append(Hit(currentUInterv.first(), label+'-', [currentUInterv.first()])) 1558 1560 else: 1559 result.append( str(currentUInterv.first())+label)1561 result.append(Hit(currentUInterv.first(), label, [currentUInterv.first()])) 1560 1562 1561 1563 if result: 1562 1564 result.sort() 1563 db.makeCurrentHit( join(result, ', '))1565 db.makeCurrentHit(result) 1564 1566 numOfHits = numOfHits + len(result) 1565 1567 overallSwitched += numOfSwitched
