samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb
# Returns whether the mouse is inside of a wall
# Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall
Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall Part of the condition that checks whether the user is removing a wall
def mouse_inside_a_wall?
    state.walls.each_key do | wall |
      return true if inputs.mouse.point.inside_rect?(scale_up([wall.x, wall.y]))
    end
    false
  end
def mouse_inside_a_wall? state . walls . each_key do | wall | return true if inputs . mouse . point . inside_rect? ( scale_up ( [ wall . x , wall . y ] ) ) end false end
Returns whether the mouse is inside of a wall
Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall Part of the condition that checks whether the user is removing a wall