Minor clarification.

Change-Id: I987576476869e24d727ecc3f941a1b627e96a417
This commit is contained in:
Chris Hodges 2023-12-21 09:35:32 +01:00
parent db7f45670e
commit 1eca157417

View File

@ -120,7 +120,7 @@ fun main() {
val grid = CharGrid(input, '%') val grid = CharGrid(input, '%')
var exp = grid.findMatches { it == 'S' }.map { RelPos(it.first, it.second) }.toSet() var exp = grid.findMatches { it == 'S' }.map { RelPos(it.first, it.second) }.toSet()
val mp = steps % 262 val mp = steps % 262
for (i in 1..589) { for (i in 1..(262 * 2 + mp)) {
exp = exp =
exp.flatMap { exp.flatMap {
CharGrid.PLUS_POS.map { rp -> it.translate(rp) } CharGrid.PLUS_POS.map { rp -> it.translate(rp) }