Skip to content

Commit

Permalink
2022 Day 24 remove debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
markjfisher committed Dec 25, 2022
1 parent bfe0761 commit 455b9cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions advents/src/main/kotlin/net/fish/y2022/Day24.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ object Day24 : Day {
if (newLocation == grid.end) {
if (part == 1) return t + 1
if (goals == 0) {
println("Changed to state 1 at time $t")
// println("Changed to state 1 at time $t")
// we made it to end first time, start again heading to start
queue.clear()
queue.addLast(WeatherGridState(newLocation, t + 1, 1))
Expand All @@ -116,7 +116,7 @@ object Day24 : Day {
queue.addLast(WeatherGridState(newLocation, t + 1, goals))
}
} else if (newLocation == grid.start && goals == 1) {
println("Changed to state 2 at time $t")
// println("Changed to state 2 at time $t")
queue.clear()
queue.addLast(WeatherGridState(newLocation, t + 1, 2))
} else if (grid.contains(newLocation)) {
Expand Down

0 comments on commit 455b9cd

Please sign in to comment.