samples/13_path_finding_algorithms/02_detailed_breadth_first_search/app/main.rb
def process_click_and_drag
    if state.click_and_drag == :slider          
      input_slider                          
    elsif state.click_and_drag == :star         
      input_star                            
    elsif state.click_and_drag == :remove_wall  
      input_remove_wall                     
    elsif state.click_and_drag == :add_wall     
      input_add_wall                        
    end
  end
# Processes input based on what the user is currently dragging
Processes input based on what the user is currently dragging
Processes input based on what the user is currently dragging
def process_click_and_drag
    if state.click_and_drag == :slider          
      input_slider                          
    elsif state.click_and_drag == :star         
      input_star                            
    elsif state.click_and_drag == :remove_wall  
      input_remove_wall                     
    elsif state.click_and_drag == :add_wall     
      input_add_wall                        
    end
  end
def process_click_and_drag if state . click_and_drag == :slider input_slider elsif state . click_and_drag == :star input_star elsif state . click_and_drag == :remove_wall input_remove_wall elsif state . click_and_drag == :add_wall input_add_wall end end
Processes input based on what the user is currently dragging
Processes input based on what the user is currently dragging