diff --git a/day-04/internal/one/solve.go b/day-04/internal/one/solve.go index b70faef..fe8a460 100644 --- a/day-04/internal/one/solve.go +++ b/day-04/internal/one/solve.go @@ -20,10 +20,6 @@ func Solve(buf []byte) (int, error) { current := newPoint(j, i) if graph.valueAt(current) == 'X' { for _, n := range neighbours(current) { - if graph.isOutOfBounds(n) { - continue - } - if checkNeighbours(graph, n, "MAS") { sum++ }