def in_view_range(position, v_row, v_col):
    'Checks to see if a tile is in an agents viewing area'
    (row, col) = position
    return all([(row >= (v_row - agent_view_size)), (row <= (v_row + agent_view_size)), (col >= (v_col - agent_view_size)), (col <= (v_col + agent_view_size))])
Checks to see if a tile is in an agents viewing area
def in_view_range(position, v_row, v_col):
    
    (row, col) = position
    return all([(row >= (v_row - agent_view_size)), (row <= (v_row + agent_view_size)), (col >= (v_col - agent_view_size)), (col <= (v_col + agent_view_size))])