#NEWLINE# def check_nook( self , level , location ) : #NEWLINE# #INDENT# ( loc_x , loc_y ) = location #NEWLINE# if ( ( floor_tile ( level , ( loc_x , ( loc_y - 1 ) ) ) in [ self . tiles [ '15' ] , self . tiles [ '35' ] ] ) and ( floor_tile ( level , ( ( loc_x + 1 ) , loc_y ) ) in self . configuration . tiles ) and ( floor_tile ( level , ( ( loc_x - 1 ) , loc_y ) ) in [ self . tiles [ '37' ] , self . tiles [ '35' ] ] ) ) : #NEWLINE# #INDENT# return self . nook_west #NEWLINE# #UNINDENT# if ( ( floor_tile ( level , ( loc_x , ( loc_y - 1 ) ) ) in [ self . tiles [ '15' ] , self . tiles [ '57' ] ] ) and ( floor_tile ( level , ( ( loc_x - 1 ) , loc_y ) ) in self . configuration . tiles ) and ( floor_tile ( level , ( ( loc_x + 1 ) , loc_y ) ) in [ self . tiles [ '37' ] , loc_y . tiles [ '57' ] ] ) ) : #NEWLINE# #INDENT# return self . nook_east #NEWLINE# #UNINDENT# return self . tiles [ '1357' ]