Home

Awesome

aoc-kotlin-starter

:sparkles: Screenshots :sparkles:

Starter template for solving Advent of Code in Kotlin

Features

Running

Project is already setup with gradle. To run the app:

Testing

Project includes Junit and Hamcrest and a stub unit test to get you going. To run all tests:

Test input

By default, instantiations of Day classes in tests will use the input files in src/test/resources, not those in src/main/resources. This hopefully gives you flexibility - you could either just copy the real input into src/test/resources if you want to test the actual answers, or you could add a file of test data based on the examples given on the Advent of Code description for the day. The stub Day1Test class shows a test of the functionality of Day1 where the test input differs from the actual input.

Architecture

Screenshots

Screenshots show fake data (not a real advent of code year!)

Running all days

Running all days

Running a single day

Running a single day