- Generate empty template per day in seperate packages
- Contains a general timing
- Includes a way for testing
- Includes a shared library automaticly included in every project
Set the correct project name in settings.gradle.kts
Update the author in gradle.properties
Update the year in gradle.properties
Add the following line the general ~/.gradle/gradle.properties
aoc.session=123456789....ABCDEFReplace the value with your value of your aoc session token.
- Generate a new day module
./gradlew generateNextDay- paste the input in
src/main/resources/input - Implement the code in
solution.ktand return the final answer - The framework will take care of printing
- run the application by
./gradlew runOr for a specific day for day XX(zerofill)
./gradlew :dayXX:runIf configured correctly, your input file will be downloaded automaticly. If you don't want to use this feature, create a
file input in the src/main/resources folder with your input content.
- Paste the input in
src/test/resources/part1/example1.input - Paste the ouptut in
src/test/resources/part1/example1.output - To include examples update the examples count in
Part1Test.kt - Execute the tests by running
./gradlew checkOr for a specific day for day XX(zerofill)
./gradlew :dayXX:check