Merge branch 'main' of github.com:StevanFreeborn/advent-of-code-2024
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user