samples/13_path_finding_algorithms/03_breadcrumbs/app/main.rb
def process_input
    if state.current_input == :star
      input_star
    elsif state.current_input == :target
      input_target
    elsif state.current_input == :remove_wall
      input_remove_wall
    elsif state.current_input == :add_wall
      input_add_wall
    end
  end
# Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging
def process_input
    if state.current_input == :star
      input_star
    elsif state.current_input == :target
      input_target
    elsif state.current_input == :remove_wall
      input_remove_wall
    elsif state.current_input == :add_wall
      input_add_wall
    end
  end
def process_input if state . current_input == :star input_star elsif state . current_input == :target input_target elsif state . current_input == :remove_wall input_remove_wall elsif state . current_input == :add_wall input_add_wall end end
Processes click and drag based on what the user is currently dragging
Processes click and drag based on what the user is currently dragging