lib/mazes/distances.rb
# Public: Find the longest single path between any two Cells in a Space.
#
# Returns a Distances instance with only the longest path solved.
Find the longest single path between any two Cells in a Space.
Returns a Distances instance with only the longest path solved.
Find the longest single path between any two Cells in a Space . Returns a Distances instance with only the longest path solved .
def max_path
			max_cell, max_dist = farthest
			new_dists = max_cell.distances
			max_cell, max_dist = new_dists.farthest
			new_dists.path_to goal: max_cell
		end
def max_path max_cell , max_dist = farthest new_dists = max_cell . distances max_cell , max_dist = new_dists . farthest new_dists . path_to goal : max_cell end
Public: Find the longest single path between any two Cells in a Space.
Public : Find the longest single path between any two Cells in a Space .