#NEWLINE# def _iterPos( self ) : #NEWLINE# #INDENT# ' an iterator over all the positions of the board. ' #NEWLINE# for i in range ( self . size [ 0 ] ) : #NEWLINE# #INDENT# for j in range ( self . size [ 1 ] ) : #NEWLINE# #INDENT# ( yield ( i , self ) )