small refactorings

This commit is contained in:
Sebastian Lindemeier
2025-12-05 09:45:02 +01:00
parent 31caf429ca
commit 79541d0dae
3 changed files with 3 additions and 28 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ public class Day04 : IPuzzleSolver<long>
Coordinate[] neighbourDirections =
[
(-1, -1), (-1, 0), (-1, 1),
(0, -1), (0, 1),
(1, -1), (1, 0), (1, 1),
(0, -1), (0, 1),
(1, -1), (1, 0), (1, 1),
];
var possibleNeighbours = neighbourDirections
.Select(direction => (coordinate.x + direction.x, coordinate.y + direction.y));