diff --git a/2024/src/main/kotlin/day14.kt b/2024/src/main/kotlin/day14.kt index 2eaefb6..bd448f2 100644 --- a/2024/src/main/kotlin/day14.kt +++ b/2024/src/main/kotlin/day14.kt @@ -36,6 +36,21 @@ fun main() { } val part1 = topLeft * topRight * bottomLeft * bottomRight println("Part 1: $part1") + + var time = 0 + while (time < 100) { + val grid = CharGrid(WIDTH, HEIGHT, '.') + for (robot in initial) { + val pos = robot.move(time).position + grid[pos] = '#' + } + + println("t = $time") + println(grid.rows.joinToString(separator = "\n")); + println() + + ++time + } } private const val WIDTH = 101