diff --git a/day_07/2.rb b/day_07/2.rb index 7357975..24851d8 100755 --- a/day_07/2.rb +++ b/day_07/2.rb @@ -17,9 +17,7 @@ class Main def process_graph(graph, counts) graph.each_with_index do |line, y| line.each_with_index do |char, x| - current = Point.new(x, y) - - next unless graph.at(current) == "^" + next unless char == "^" distribute_counts(x, y, counts) end