diff --git a/src/aoc2023/Day21.kt b/src/aoc2023/Day21.kt index 7777731..d788b04 100644 --- a/src/aoc2023/Day21.kt +++ b/src/aoc2023/Day21.kt @@ -120,7 +120,7 @@ fun main() { val grid = CharGrid(input, '%') var exp = grid.findMatches { it == 'S' }.map { RelPos(it.first, it.second) }.toSet() val mp = steps % 262 - for (i in 1..589) { + for (i in 1..(262 * 2 + mp)) { exp = exp.flatMap { CharGrid.PLUS_POS.map { rp -> it.translate(rp) }