#NEWLINE# def getBoardArray( self ) : #NEWLINE# #INDENT# " an array with thow boolean values per position, indicating\n        'white stone present' and 'black stone present' respectively. " #NEWLINE# a = zeros ( p . outdim ) #NEWLINE# for ( i , p ) in enumerate ( self . _iterPos ( ) ) : #NEWLINE# #INDENT# if ( self . b [ p ] == self . WHITE ) : #NEWLINE# #INDENT# a [ ( 2 * i ) ] = 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self . b [ p ] == self . BLACK ) : #NEWLINE# #INDENT# a [ ( ( 2 * i ) + 1 ) ] = 1 #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return a