Skip to content

dieterle/aoc-2021-kt

 
 

Repository files navigation

Advent of Code 2021, using Kotlin

See https://adventofcode.com/2021, https://kotlinlang.org/.

See also "the official GitHub template" by JetBrains.

Getting Input

Grab your advent of code session cookie from the browser (the internet will help you) and store it in an env var AOC_SESSION. Then cd into ./input and run ./get_input <number of the day>.

Code Formatting

Code format is checked by ktlint via the Gradle plugin Ktlint Gradle

Format the code using ./gradlew ktlintFormat.

Adjust IDEA code style settings via ./gradlew ktlintApplyToIdea and restart IDEA.

Add a Git pre-commit hook checking the format via ./gradlew addKtlintCheckGitPreCommitHook.

About

Advent of Code 2021, using Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 99.5%
  • Shell 0.5%