✨ Screenshots ✨
Starter template for solving Advent of Code in Kotlin
Project is already setup with gradle. To run the app:
./gradlew run
to run all days./gradlew run --args $DAY
where $DAY
is an integer to run a specific dayProject includes Junit and Hamcrest and a stub unit test to get you going. To run all tests:
./gradlew test
--info
, --debug
or --stacktrace
flags for more outputBy 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.
src/main/resources
and follow the naming convention input_day_X.txt
src/main/kotlin/days
and extend the Day
abstract class, calling its constructor with their day numberDayX
inputList
and inputString
inputList
and inputString
mentioned abovesrc/main/input_day_1.txt
with the real input and the solutions in Day1
with your ownsrc/test/resources/input_day_1.txt
Screenshots show fake data (not a real advent of code year!)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4