Skip to content

Commit cbd7d6b

Browse files
committed
Refactor: Rename a Day14 function to match its purpose
1 parent 252d8db commit cbd7d6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/Day14.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fun main() {
112112
return !allUnique
113113
}
114114

115-
fun iterateUntilSymmetrical(robots: List<Robot>, width: Int, height: Int): Long {
115+
fun iterateUntilUnique(robots: List<Robot>, width: Int, height: Int): Long {
116116
var seconds = 0L
117117
do {
118118
seconds++
@@ -121,7 +121,7 @@ fun main() {
121121
return seconds
122122
}
123123

124-
fun part2(input: List<String>) = iterateUntilSymmetrical(input.parseRobots(), 101, 103)
124+
fun part2(input: List<String>) = iterateUntilUnique(input.parseRobots(), 101, 103)
125125

126126
printAndCheck(input, ::part2, 6512)
127127
}

0 commit comments

Comments
 (0)