From 0d7141d8fda487c7ae4c894560c3d6e046b7b058 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 19 Dec 2024 18:00:54 +0000 Subject: [PATCH] Setup files for Day 20 --- .../src/main/kotlin/com/tymscar/day20/day20.kt | 13 +++++++++++++ .../main/kotlin/com/tymscar/day20/part1/part1.kt | 5 +++++ .../main/kotlin/com/tymscar/day20/part2/part2.kt | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 2024/kotlin/src/main/kotlin/com/tymscar/day20/day20.kt create mode 100644 2024/kotlin/src/main/kotlin/com/tymscar/day20/part1/part1.kt create mode 100644 2024/kotlin/src/main/kotlin/com/tymscar/day20/part2/part2.kt diff --git a/2024/kotlin/src/main/kotlin/com/tymscar/day20/day20.kt b/2024/kotlin/src/main/kotlin/com/tymscar/day20/day20.kt new file mode 100644 index 0000000..00cdcec --- /dev/null +++ b/2024/kotlin/src/main/kotlin/com/tymscar/day20/day20.kt @@ -0,0 +1,13 @@ +package com.tymscar.day20 + +import java.io.File +import com.tymscar.day20.part1.solve as part1 +import com.tymscar.day20.part2.solve as part2 + +fun solve() { + var input: String = File("src/main/kotlin/com/tymscar/day20/input.txt").readText() + + println("Day 20: ") + println("Part 1: ${part1(input)}") + println("Part 2: ${part2(input)}") +} diff --git a/2024/kotlin/src/main/kotlin/com/tymscar/day20/part1/part1.kt b/2024/kotlin/src/main/kotlin/com/tymscar/day20/part1/part1.kt new file mode 100644 index 0000000..eb0fc5f --- /dev/null +++ b/2024/kotlin/src/main/kotlin/com/tymscar/day20/part1/part1.kt @@ -0,0 +1,5 @@ +package com.tymscar.day20.part1 + +fun solve(input: String): String { + return input +} diff --git a/2024/kotlin/src/main/kotlin/com/tymscar/day20/part2/part2.kt b/2024/kotlin/src/main/kotlin/com/tymscar/day20/part2/part2.kt new file mode 100644 index 0000000..2ea5a3c --- /dev/null +++ b/2024/kotlin/src/main/kotlin/com/tymscar/day20/part2/part2.kt @@ -0,0 +1,5 @@ +package com.tymscar.day20.part2 + +fun solve(input: String): String { + return input +}