samples/13_path_finding_algorithms/01_breadth_first_search/app/main.rb
def render_visited
    outputs.solids << state.visited.map do |cell|
      [scale_up([cell.x, cell.y]), visited_color]
    end
  end
# Renders cells that have been searched in the appropriate color
Renders cells that have been searched in the appropriate color
Renders cells that have been searched in the appropriate color
def render_visited
    outputs.solids << state.visited.map do |cell|
      [scale_up([cell.x, cell.y]), visited_color]
    end
  end
def render_visited outputs . solids << state . visited . map do | cell | [ scale_up ( [ cell . x , cell . y ] ) , visited_color ] end end
Renders cells that have been searched in the appropriate color
Renders cells that have been searched in the appropriate color