This repository contains my solutions for the Advent of Code 2023 challenge.
Mo | Tu | We | Th | Fr | Sa | Su |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 |
- Create
dayXX.kt
file in the days folder - Paste this code in the file:
import utils.Puzzle
val dayXX = Puzzle(
day = X,
part1 = { input ->
// Solve part 1 here
},
part2 = { input ->
// Solve part 2 here
},
)
- Add the tests for the day in the Days file
@Test
fun dayXX() {
val testInput = AOC.getTestInputFromFile(X) ?: ""
dayXX.testPart1(testInput, X)
val input = AOC.getInput(X) ?: ""
dayXX.solvePart1(input)
val testInput2 = AOC.getTestInputFromFile(X, 2) ?: ""
dayXX.testPart2(testInput2, X)
dayXX.solvePart2(input)
}