Changeset 119
- Timestamp:
- 03/24/04 18:37:53 (5 years ago)
- Files:
-
- 06/devel/abstractBoardPY.py (modified) (1 diff)
- 06/devel/aglPY.py (modified) (2 diffs)
- 06/devel/algosPY.py (modified) (5 diffs)
- 06/devel/kombilo.py (modified) (1 diff)
- 06/devel/patternPY.py (modified) (1 diff)
- 06/devel/searchPY.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/devel/abstractBoardPY.py
r83 r119 58 58 59 59 def copy(self): 60 print 'invoke copy' 60 61 ab = abstractBoard(self.boardsize) 61 62 ab.status = deepcopy(self.status) 06/devel/aglPY.py
r101 r119 429 429 430 430 newDB.process(dbpath, datap, algos, filenames, messages, 431 sloppySGF, duplicateCheck, strictDuplicateCheck, self)431 sloppySGF, duplicateCheck, strictDuplicateCheck, 1) # self) FIXME 432 432 except IOError: # FIXME 433 433 messages.insert('Error', … … 492 492 try: 493 493 newDB.process(sgfpath, datap, thisAlgos, filenames, messages, 494 sloppySGF, duplicateCheck, strictDuplicateCheck, self)494 sloppySGF, duplicateCheck, strictDuplicateCheck, 1) # FIXME self) 495 495 except IOError: # FIXME 496 496 messages.insert('end', 'Error: A fatal error occurred when processing ' + sgfpath + '.\n') 06/devel/algosPY.py
r115 r119 24 24 from array import * 25 25 from string import lower, join 26 from copy import deepcopy 27 28 def BW2XO(c): 29 try: 30 return {'B': 'X', 'W': 'O'}[c] 31 except: 32 return c 33 26 34 27 35 class Algorithm: # virtual … … 543 551 cL = p.contList.split('/') 544 552 for t in cL: 545 if t: contList[m].append((ord(t[0])+m[1][0], ord(t[1])+m[1][1], t[2]))553 if t: contList[m].append((ord(t[0])+m[1][0], ord(t[1])+m[1][1], BW2XO(t[2]))) 546 554 547 555 contListIndex[m] = 0 … … 613 621 614 622 elif dicts[m].has_key('foundInitial'): 623 624 print 'look at contlist', (x,y,co), contList[m][contListIndex[m]] 625 615 626 if (x, y, co) == contList[m][contListIndex[m]]: 616 627 contListIndex[m] += 1 628 print 'ok' 617 629 if contListIndex[m] == len(contList[m]): 618 630 dicts[m]['found'] = counter … … 668 680 and Yinterv[m][0] <= y < Yinterv[m][1]: 669 681 if dicts[m].has_key('foundInitial'): 682 683 # look for captures in the contList 684 # (which may be in the wrong order) 685 670 686 ii = contListIndex[m] 671 687 while ii < len(contList[m]) and \ … … 932 948 hash_start = self.hashT[2*((start+end)/2)+1] 933 949 if 2*((start+end)/2)+3 >= len(self.hashT): 934 hash_end = len( hash)950 hash_end = len(self.hashT) # FIXME: war len(hash); stimmt das jetzt? 935 951 else: hash_end = self.hashT[2*((start+end)/2)+3] 936 952 06/devel/kombilo.py
r115 r119 2410 2410 self.currentContList.append((pos[0], pos[1], color)) 2411 2411 self.board.placeMSLabel(pos, 'LB', `len(self.currentContList)`) 2412 2413 # FIXME: put captures into currentContList! 2412 2414 2413 2415 if self.oneClick.get() and (self.board.selection[1] == (-1,-1) or \ 06/devel/patternPY.py
r115 r119 101 101 102 102 for t in contList.split('/'): 103 if t :103 if t and t[2] in ['B', 'W']: 104 104 # print ord(t[0]), ord(t[1]), t[2] 105 helpFinalPos[ord(t[0]) + sizeX*ord(t[1])] = self.BW2XO(t[2]) # ignore captures ...105 helpFinalPos[ord(t[0]) + sizeX*ord(t[1])] = self.BW2XO(t[2]) # FIXME: deal with captures 106 106 107 107 self.finalPos = join(helpFinalPos, '') 06/devel/searchPY.py
r101 r119 366 366 self.branchpoints.append((cursor.currentN, b.copy(), whichVar+1)) 367 367 cursor.next(whichVar+1) 368 else: break 368 else: 369 break 369 370 370 371 except SGFError: 371 372 messages.insert('end', 'File ' + f +iColl + ': SGF error in node ' + `counter+3` + '.\n') 372 except :373 except ImportError: # FIXME 373 374 messages.insert('end', 'File ' + f + iColl + ': Error in node ' + `counter+3` + '.\n') 374 375 … … 434 435 siglist.append(signature) 435 436 436 except ImportError: 437 except ImportError: # FIXME 437 438 messages.insert('end', 'File ' + f +iColl + ': Error computing the Dyer signature.\n') 438 439 signature = '????????????'
