Skip to content

Commit

Permalink
examples: fix printout (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
q9f authored Dec 23, 2024
1 parent 36d6748 commit 1807238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pathfinder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@

# Path from argument 1 and 2
best_smart_gate_path = UNIVERSE_GRAPH.shortest_path(ARGV[0], ARGV[1])
pp "#{ARGV[0]} --> #{ARGV[1]}: #{"%.3f" % best_smart_gate_path.dist} ly (#{best_smart_gate_path.path.join(" --> ")})"
pp "#{ARGV[0]} --> #{ARGV[1]}: #{"%.3f" % best_smart_gate_path["dist"]} ly (#{best_smart_gate_path["path"].join(" --> ")})"
end

0 comments on commit 1807238

Please sign in to comment.