Merge branch 'main' of github.com:StevanFreeborn/advent-of-code-2024

This commit is contained in:
Stevan Freeborn
2024-12-07 13:01:02 -06:00
+2 -1
View File
@@ -24,6 +24,7 @@ class Map
// I'm finding all the places on the map where I can // I'm finding all the places on the map where I can
// place the obstruction, placing, and then seeing if // place the obstruction, placing, and then seeing if
// a loop is created when guard patrols map. // a loop is created when guard patrols map.
// IDEA: Only check places on the guard's path
public int IdentifyNumberOfPlacementsForNewObstruction() public int IdentifyNumberOfPlacementsForNewObstruction()
{ {
var count = 0; var count = 0;
@@ -205,4 +206,4 @@ class Map
return Direction.Up; return Direction.Up;
} }
} }