Permalink
Browse files

restore ability to display solution

  • Loading branch information...
1 parent e62c0a0 commit af72e0b68166b1f820cf634938f61b0cdf5528aa @jamis committed Jan 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/theseus/cli.rb
View
1 lib/theseus/cli.rb
@@ -153,6 +153,7 @@ def run_static
if @format == :ascii
puts @maze.to_s(:mode => :unicode)
else
+ @png_opts[:solution] = @solution
File.open(@output + ".png", "w") { |io| io.write(@maze.to(:png, @png_opts)) }
puts "maze written to #{@output}.png"
end

0 comments on commit af72e0b

Please sign in to comment.