samples/13_path_finding_algorithms/04_early_exit/app/main.rb
# Renders the path based off of the state.path hash
Renders the path based off of the state.path hash
Renders the path based off of the state . path hash
def render_path
    unless state.path.size == 1
      state.path.each_key do | cell |
        outputs.solids << [scale_up(cell), path_color]
        outputs.solids << [early_exit_scale_up(cell), path_color]
      end
    end
  end
def render_path unless state . path . size == 1 state . path . each_key do | cell | outputs . solids << [ scale_up ( cell ) , path_color ] outputs . solids << [ early_exit_scale_up ( cell ) , path_color ] end end end
Renders the path based off of the state.path hash
Renders the path based off of the state . path hash
# If the star and target are disconnected there will only be one path # The path should not render in that case # Renders path on both grids