samples/13_path_finding_algorithms/05_dijkstra/app/main.rb
def render_grid_lines
    for x in 0..grid.width
      outputs.lines << vertical_line(x)
      outputs.lines << shifted_vertical_line(x)
    end

    for y in 0..grid.height
      outputs.lines << horizontal_line(y)
      outputs.lines << shifted_horizontal_line(y)
    end
  end
# Draws grid lines to show the division of the grid into cells
Draws grid lines to show the division of the grid into cells
Draws grid lines to show the division of the grid into cells
def render_grid_lines
    for x in 0..grid.width
      outputs.lines << vertical_line(x)
      outputs.lines << shifted_vertical_line(x)
    end
    for y in 0..grid.height
      outputs.lines << horizontal_line(y)
      outputs.lines << shifted_horizontal_line(y)
    end
  end
def render_grid_lines for x in 0 .. grid . width outputs . lines << vertical_line ( x ) outputs . lines << shifted_vertical_line ( x ) end for y in 0 .. grid . height outputs . lines << horizontal_line ( y ) outputs . lines << shifted_horizontal_line ( y ) end end
Draws grid lines to show the division of the grid into cells
Draws grid lines to show the division of the grid into cells