/advent-of-code-2021

My very own solutions to the amazing advent of code from 2021

Primary LanguageKotlinMIT LicenseMIT

advent-of-code-2021

GitHub last commit Travis (.org) GitHub GitHub code size in bytes GitHub top language

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  • JDK 8 or later

Installing

You can setup the project into an IDE by importing the folder. The following command shows how to do it in IntelliJ IDEA.

idea advent-of-code-2021

Running the tests

You can easily run the automated tests of this project by the shipped gradle wrapper

❯ ./gradlew clean test
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :app:compileKotlin

> Task :app:test

...

BUILD SUCCESSFUL in 1m 44s
5 actionable tasks: 5 executed

Break down into tests

There are unit tests for all of the solved days. Each one is in a separate package located under src/test/kotlin.

── test
    ├── kotlin
    │   └── advent
    │       └── of
    │           └── code
    │               ├── day01
    │               │   └── Day01Test.kt
    │               ├── day02
    │               │   └── Day02Test.kt
    │               ├── day03
    │               │   └── Day03Test.kt
    │               ├── day04
    │               │   └── Day04Test.kt
    │               ├── day05
    │               │   └── Day05Test.kt
    │               ├── day06
    │               │   └── Day06Test.kt
    │               ├── day07
    │               │   └── Day07Test.kt
    │               ├── day08
    │               │   └── Day08Test.kt
    │               ├── day09
    │               │   └── Day09Test.kt
    │               ├── day10
    │               │   └── Day10Test.kt

Built With

  • Kotlin - The programming language used
  • Gradle - Dependency Management

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details