samples/13_path_finding_algorithms/04_early_exit/app/main.rb
# Returns whether the mouse is inside of a wall in the second grid
# Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall in the second grid
Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall in the second grid Part of the condition that checks whether the user is removing a wall
def mouse_inside_wall2?
    state.walls.each_key do | wall |
      return true if inputs.mouse.point.inside_rect?(early_exit_scale_up(wall))
    end
    false
  end
def mouse_inside_wall2? state . walls . each_key do | wall | return true if inputs . mouse . point . inside_rect? ( early_exit_scale_up ( wall ) ) end false end
Returns whether the mouse is inside of a wall in the second grid
Part of the condition that checks whether the user is removing a wall
Returns whether the mouse is inside of a wall in the second grid Part of the condition that checks whether the user is removing a wall