#NEWLINE# def coord_in_map( self , x , y , w = None , h = None ) : #NEWLINE# #INDENT# w = ( len ( y . mine_matrix [ 0 ] ) if ( w is None ) else w ) #NEWLINE# h = ( len ( self . mine_matrix ) if ( h is None ) else h ) #NEWLINE# return ( not ( ( x > ( w - 1 ) ) or ( y > ( h - 1 ) ) or ( x < 0 ) or ( y < 0 ) ) )