DEV Community

loading...

Advent of Code with Kotlin in 1 minute!

hsz profile image Jakub Chrzanowski ・1 min read

The first of December is close. Some may have already heard that the fifth edition of Advent of Code is starting next month.

For those who do not know what is going on - I will quickly quote its creator, Eric Wastl:

Advent of Code is an Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like. People use them as a speed contest, interview prep, company training, university coursework, practice problems, or to challenge each other.

The general idea is simple - every day there is a new puzzle to solve. We have to deal with the previous one to unlock the next ones and help Santa with his surprising problems in the final.

This year I decided to use the Kotlin language - mainly because I want to get to know it better and - classically - feel the competitive spirit.

Let's get to the point!

I have created already a preconfigured Kotlin project with sources and tests structure, README template and solution for Day 1 of the 2015 edition.

It is a GitHub template repository that can be easily used as a boilerplate for your own Advent of Code solutions set.

It can be found here: https://github.com/hsz/advent-of-code-kotlin-template

advent-of-code-kotlin-template

All you have to do is hit the Use this template button, clone repository and open it within IntelliJ IDEA.

advent-of-code-kotlin-template

Good luck!

Discussion (0)

pic
Editor guide