mirror of
https://github.com/onyx-and-iris/aoc2025.git
synced 2026-04-09 03:23:37 +00:00
no need to current point value
This commit is contained in:
@@ -17,9 +17,7 @@ class Main
|
|||||||
def process_graph(graph, counts)
|
def process_graph(graph, counts)
|
||||||
graph.each_with_index do |line, y|
|
graph.each_with_index do |line, y|
|
||||||
line.each_with_index do |char, x|
|
line.each_with_index do |char, x|
|
||||||
current = Point.new(x, y)
|
next unless char == "^"
|
||||||
|
|
||||||
next unless graph.at(current) == "^"
|
|
||||||
|
|
||||||
distribute_counts(x, y, counts)
|
distribute_counts(x, y, counts)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user