small refactorings
This commit is contained in:
+2
-2
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user