samples/13_path_finding_algorithms/04_early_exit/app/main.rb
def early_exit_scale_up(cell)
    cell_clone = cell.clone
    cell_clone.x += grid.width + 1
    scale_up(cell_clone)
  end
# Translates the given cell grid.width + 1 to the right and then scales up
# Used to draw cells for the second grid
# This method does not work for lines,
# so separate methods exist for the grid lines
Translates the given cell grid.width + 1 to the right and then scales up
Used to draw cells for the second grid
This method does not work for lines,
so separate methods exist for the grid lines
Translates the given cell grid . width + 1 to the right and then scales up Used to draw cells for the second grid This method does not work for lines so separate methods exist for the grid lines
def early_exit_scale_up(cell)
    cell_clone = cell.clone
    cell_clone.x += grid.width + 1
    scale_up(cell_clone)
  end
def early_exit_scale_up ( cell ) cell_clone = cell . clone cell_clone . x += grid . width + 1 scale_up ( cell_clone ) end
Translates the given cell grid.width + 1 to the right and then scales up
Used to draw cells for the second grid
This method does not work for lines,
so separate methods exist for the grid lines
Translates the given cell grid . width + 1 to the right and then scales up Used to draw cells for the second grid This method does not work for lines so separate methods exist for the grid lines
cell