Skip to content

Commit

Permalink
2024 - Day 25 - started parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
fmmr committed Dec 25, 2024
1 parent 61de7c4 commit de70581
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/kotlin/no/rodland/advent_2024/Day25.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,19 @@ class Day25(val input: List<String>) : Day<Long, Long, List<String>> {
}

override fun List<String>.parse(): List<String> {

val (locks, keys) = joinToString("\n").split("\n\n").partition { it.startsWith("#####") }
return map { line ->
line
}
}
sealed interface Thing
data class Lock(val init: String): Thing {

}
data class Key(val init: String): Thing {

}

override val day = "25".toInt()
}

0 comments on commit de70581

Please sign in to comment.