My Advent of Code solutions in Java.
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
Day 1 | Day 2 | Day 3 | Day 4 | Day 5 |
Day 6 | Day 7 | Day 8 | Day 9 | Day 10 |
Day 11 | Day 12 | Day 13 | Day 14 | Day 15 |
Day 16 | Day 17 | Day 18 | Day 19 | Day 20 |
Day 21 | Day 22 | Day 23 | Day 24 | Day 25 |
- have fun
- learn something new
- get as many puzzles as possible to run within the time limit
- (over)use the following Java features:
var
,Lambda
,Stream
,Optional
,switch expressions
You will need JDK 17.
By default the project will look for it in your JAVA_HOME
.
You can also specify your own JDK path like this when using gradle:
./gradlew <command> -Dorg.gradle.java.home=/path/to/java17
Run all tests:
./gradlew clean test
Run a specific year:
./gradlew clean test --tests *2019*
Run a specific day:
./gradlew clean test --tests *132019*
Print a representation of some puzzles to stdout
:
./gradlew clean test -Dprint=true
Following days have a main
method that enables a basic interactive mode:
- 13th December 2019
- 25th December 2019
Enjoy! πΉοΈ
- move to JUnit 5