Show
Ignore:
Timestamp:
09/28/04 22:06:29 (4 years ago)
Author:
ug
Message:

Fixed bug in abstractBoard.copy.

Files:

Legend:

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

    r164 r165  
    5858        ab = abstractBoard(self.boardsize) 
    5959        ab.status = deepcopy(self.status) 
    60         ab.undostack = deepcopy(ab.undostack) 
     60        ab.undostack = deepcopy(self.undostack) 
    6161        return ab 
    6262 
     
    6969        """ Return number of captured stones in last move. """ 
    7070 
     71        if not self.undostack:  
     72            print 'no undostack' 
     73            return 0 
     74        elif len(self.undostack[-1]) < 3: print self.undostack[-1] 
    7175        return len(self.undostack[-1][2]) 
    7276