We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e85090d commit 7cf55a7Copy full SHA for 7cf55a7
src/main/kotlin/me/peckb/aoc/_2024/calendar/day06/Day06.kt
@@ -79,6 +79,7 @@ class Day06 @Inject constructor(
79
80
while (stepCount < MAX_STEPS && area.containsLocation(guard.location.y, guard.location.x)) {
81
val (nextY, nextX) = guard.direction.step(guard.location.y, guard.location.x)
82
+
83
step(guard.location.copy())
84
85
if (area.containsLocation(nextY, nextX) && area[nextY][nextX] == Space.BLOCKED) {
0 commit comments