Changeset 167 for 06/devel/patternPY.py

Show
Ignore:
Timestamp:
09/30/04 21:11:20 (4 years ago)
Author:
ug
Message:

Make pattern search with contList stones outside selected region work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 06/devel/patternPY.py

    r166 r167  
    108108 
    109109        for t in contList.split('/'): 
    110             if t: 
     110            if t and ord(t[0]) < sizeX and ord(t[1]) < sizeY: 
    111111                if t[2] in ['B', 'W']: 
    112112                    # print ord(t[0]), ord(t[1]), t[2] 
     
    118118        self.contList = contList 
    119119        self.lenContList = lenContList 
    120          
     120        # self.printPattern()  
    121121        self.bits = [] # list of 4 bit-patterns 
    122122