Skip to content

verwoerd/AoC2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for Advent Of Code

  • 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

First use

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....ABCDEF

Replace the value with your value of your aoc session token.

Generate new day

  • Generate a new day module
./gradlew generateNextDay

Implement our problem

  • paste the input in src/main/resources/input
  • Implement the code in solution.kt and return the final answer
  • The framework will take care of printing
  • run the application by
./gradlew run

Or for a specific day for day XX(zerofill)

./gradlew :dayXX:run

If 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.

Testing your Code

  • 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 check

Or for a specific day for day XX(zerofill)

./gradlew :dayXX:check

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published