def obs_filter_step(distance, view):
    """
    Perfectly observe the agent if it is within the observing agent's view. If
    it is not within the view, then don't observe it at all.
    """
    return 0 if distance > view else 1