[2016][ruby][13.1]

profile
Alpha Chen 8 years ago
parent 7f84a1a0a9
commit d81c34cc54

@ -53,7 +53,7 @@ end
if __FILE__ == $0 if __FILE__ == $0
maze = Maze.new(1358) maze = Maze.new(1358)
p maze.solve([1,1]).walk.find {|pos,_| pos == [31,39] } p maze.solve([1,1]).walk.take_while {|pos,count| count < 51 }.map(&:first).uniq.size
end end
require 'minitest' require 'minitest'

Loading…
Cancel
Save