Skip to content

jsoberg/Kotlin-AoC-Utilities

Repository files navigation

Kotlin Advent of Code Utilities 🎄

Tests

Common utilities that I end up using every year for Advent of Code. Includes the Kotlin AoC API for automatically pulling and caching input for each day of the advent.

Setup

This can be added to a Kotlin Advent of Code template repository or any other Kotlin JVM project through Jitpack, in your build.gradle.kts:

dependencies {
    implementation("com.github.jsoberg:Kotlin-AoC-Utilities:2024.6")
}

Utilities

Listing of the current utilities for common functions found in Advent of Code puzzles.

Data Structures

  • Grid2D - Simple uniform 2D Grid with utility functions for moving in cardinal directions.

Input Reading

Async

  • AsyncSum - Various utility functions for running sum functions asynchronously (using coroutines).