Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gianttreelp/aoc2024-kotlin
Advent of Code 2024 in Kotlin
https://github.com/gianttreelp/aoc2024-kotlin
aoc-2024-in-kotlin
Last synced: 7 days ago
JSON representation
Advent of Code 2024 in Kotlin
- Host: GitHub
- URL: https://github.com/gianttreelp/aoc2024-kotlin
- Owner: GiantTreeLP
- License: mit
- Created: 2024-12-08T20:05:47.000Z (14 days ago)
- Default Branch: main
- Last Pushed: 2024-12-15T21:07:38.000Z (7 days ago)
- Last Synced: 2024-12-15T22:18:25.523Z (7 days ago)
- Topics: aoc-2024-in-kotlin
- Language: Kotlin
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AOC 2024 in Kotlin
[![GitHub License](https://img.shields.io/github/license/GiantTreeLP/AOC2024-Kotlin?style=for-the-badge)](LICENSE)
This repository contains my solutions for the [Advent of Code 2024](https://adventofcode.com/2024) puzzles.
I will be solving them in Kotlin.## Running the solutions
Each solution is a Kotlin file with a `main` function that reads the input from a file and prints the solution to the console.
Each day has its own package and each part of the puzzle has its own file.
That way I am able to run each part separately.
Commonly used functions, classes and extensions can be found in the `common` package.Input is expected to be in a file named `input` in the resources folder of the corresponding day.
The layout of the directories is as follows:
```
- src
- main
- kotlin
- dayX
- part1.kt
- part2.kt
- resources
- dayX
- input
- sample
```To run a solution, simply run the `main` function of the desired part.
Don't expect the code to be perfect, I'm trying to solve the puzzles in a way that is good enough for me.