samples/13_path_finding_algorithms/04_early_exit/app/main.rb
def input_add_wall2
    if mouse_inside_grid2?
      unless state.walls.has_key?(cell_closest_to_mouse2)
        state.walls[cell_closest_to_mouse2] = true
        reset_search
      end
    end
  end
# Adds a wall in the second grid in the cell the mouse is over
Adds a wall in the second grid in the cell the mouse is over
Adds a wall in the second grid in the cell the mouse is over
def input_add_wall2
    if mouse_inside_grid2?
      unless state.walls.has_key?(cell_closest_to_mouse2)
        state.walls[cell_closest_to_mouse2] = true
        reset_search
      end
    end
  end
def input_add_wall2 if mouse_inside_grid2? unless state . walls . has_key? ( cell_closest_to_mouse2 ) state . walls [ cell_closest_to_mouse2 ] = true reset_search end end end
Adds a wall in the second grid in the cell the mouse is over
Adds a wall in the second grid in the cell the mouse is over