{"repo":"hughjdavey/aoc-kotlin-starter","free":true,"listed":false,"github":"https://github.com/hughjdavey/aoc-kotlin-starter","clone":"git clone https://github.com/hughjdavey/aoc-kotlin-starter.git","description":"Starter template for solving Advent of Code in Kotlin","language":"Kotlin","stars":22,"topics":["advent-of-code","kotlin","starter-template","starter-project"],"license":"CC0-1.0","category":"saas-starters-boilerplates","readme_excerpt":"aoc-kotlin-starter :sparkles: Screenshots :sparkles: Starter template for solving Advent of Code in Kotlin Features Gradle setup so you can run a specific day or all days on the command line (see Running below) Timings for each part of each day Input for each day automatically exposed in String and List form Junit and Hamcrest test libraries included (see Testing below) Starter .gitignore Running Project is already setup with gradle. To run the app: Navigate to top-level directory on the command line Run ./gradlew run to run all days Run ./gradlew run --args $DAY where $DAY is an integer to run a specific day Testing Project includes Junit and Hamcrest and a stub unit test to get you going. To run all tests: Navigate to top-level directory on the command line Run ./gradlew test Add --info , --debug or --stacktrace flags for more output 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 Inputs go into src/main/resources and follow the naming convention input day X.txt Solutions go into src/main/kotlin/da","default_branch":null,"files":null,"tree":[],"storefront":"/r/hughjdavey","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hughjdavey/aoc-kotlin-starter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}