Skip to content

Commit

Permalink
UI tweaks in VRG
Browse files Browse the repository at this point in the history
  • Loading branch information
honnza committed Feb 7, 2022
1 parent 9897efd commit 7707d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virtual_roadtrip_guide.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def squeeze_path_str(str, len)
pairs.delete pair
used_pairs << pair
last_dest = pair[1]
geo_dist_str = USE_GEO ? " (distance #{geo_dist(*pair)} km)" : ""
geo_dist_str = USE_GEO ? "\ndistance #{geo_dist(*pair)} km" : ""
length_str = if USE_LENGTHS
path_ixes = [pair[0].ix];
path_ixes << path_next[path_ixes.last][pair[1].ix] until path_ixes.last == pair[1].ix
Expand Down Expand Up @@ -285,8 +285,8 @@ def squeeze_path_str(str, len)
end
inames = shortenings.map{_1[0]}.uniq
jnames = shortenings.map{_1[1]}.uniq
puts "#{shortenings.count} paths from \e[1m#{inames.count}\e[0m places (#{inames.join(", ")}) " +
"to \e[1m#{jnames.count}\e[0m places (#{jnames.join(", ")}) shortened"
puts "\e[36m#{shortenings.count}\e[0m paths from \e[36m#{inames.count}\e[0m places (#{inames.join(", ")}) " +
"to \e[36m#{jnames.count}\e[0m places (#{jnames.join(", ")}) shortened"
end

if !USE_LENGTHS
Expand Down

0 comments on commit 7707d95

Please sign in to comment.