samples/13_path_finding_algorithms/03_breadcrumbs/app/main.rb
# Whenever the user edits the grid,
# The search has to be reset_searchd upto the current step
# with the current grid as the initial state of the grid
Whenever the user edits the grid,
The search has to be reset_searchd upto the current step
with the current grid as the initial state of the grid
Whenever the user edits the grid The search has to be reset_searchd upto the current step with the current grid as the initial state of the grid
def reset_search
    search.frontier  = []
    search.came_from = {}
    search.path      = {}
  end
def reset_search search . frontier = [ ] search . came_from = { } search . path = { } end
Whenever the user edits the grid,
The search has to be reset_searchd upto the current step
with the current grid as the initial state of the grid
Whenever the user edits the grid The search has to be reset_searchd upto the current step with the current grid as the initial state of the grid
# Reset_Searchs the search