theseus 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/theseus +3 -3
- data/lib/theseus/formatters/ascii/orthogonal.rb +2 -0
- data/lib/theseus/version.rb +1 -1
- metadata +2 -2
data/bin/theseus
CHANGED
@@ -205,7 +205,7 @@ if animate
|
|
205
205
|
maze.generate! do
|
206
206
|
if format == :ascii
|
207
207
|
system "clear"
|
208
|
-
puts maze.to_s(:mode => :
|
208
|
+
puts maze.to_s(:mode => :unicode)
|
209
209
|
sleep 0.05
|
210
210
|
else
|
211
211
|
f = "%s-%04d.png" % [output, step]
|
@@ -217,7 +217,7 @@ if animate
|
|
217
217
|
|
218
218
|
if format == :ascii
|
219
219
|
system "clear"
|
220
|
-
puts maze.to_s(:mode => :
|
220
|
+
puts maze.to_s(:mode => :unicode)
|
221
221
|
else
|
222
222
|
f = "%s-%04d.png" % [output, step]
|
223
223
|
File.open(f, "w") { |io| io.write(maze.to(:png, png_opts)) }
|
@@ -254,7 +254,7 @@ else
|
|
254
254
|
end
|
255
255
|
|
256
256
|
if format == :ascii
|
257
|
-
puts maze.to_s(:mode => :
|
257
|
+
puts maze.to_s(:mode => :unicode)
|
258
258
|
else
|
259
259
|
File.open(output + ".png", "w") { |io| io.write(maze.to(:png, png_opts)) }
|
260
260
|
puts "maze written to #{output}.png"
|
data/lib/theseus/version.rb
CHANGED