Skip to content

andrewfitzy/2015-advent-of-code

Repository files navigation

build_and_test badge

2015-advent-of-code

This repo contains the solutions for my path of Advent of Code 2015. I complete AoC to get familiar with a technology, its build tools and testing tools, it's kind of a mini-production type workflow I follow.

In this year I chose to use the following tools:

  • Java v19.0.1. I have the OpenJDK version of the JDK on my machine so this is the version I have used. I know there are other versions available but in theory they are all interchangeable, right... right?
  • Gradle v8.1.1. From April 2023 which is when I set up this repo.
  • Spotless v6.12.0. Also using the Palantir formatting configuration v2.28.0.
  • SpotBugs v6.0.4. Code analysis tool which is useful for finding bugs.
  • JUnit v5.8.1. Unit test framework.

All development was completed using IntelliJ which is an awesome development environment.

Setup

There is a small setup script that copies the projects pre-commit file to the hooks folder of the project's repo. This needs to be run after the project is cloned only.

$ ./gradlew initProject  

Building

$ ./gradlew build  

Testing

$ ./gradlew check  

Committing

The pre-commit hook should kick-in, when it does it will run spotless and spotbugs

$ git add --all
$ git commit -a

Progress

Challenge Task 1 Task 2
Day 01 Not Quite Lisp 🌟 🌟
Day 02 I Was Told There Would Be No Math 🌟 🌟
Day 03 Perfectly Spherical Houses in a Vacuum 🌟 🌟
Day 04 The Ideal Stocking Stuffer 🌟 🌟
Day 05 Doesn't He Have Intern-Elves For This? 🌟 🌟
Day 06 Probably a Fire Hazard 🌟 🌟
Day 07 Some Assembly Required 🌟 🌟
Day 08 Matchsticks 🌟 🌟
Day 09 All in a Single Night 🌟 🌟
Day 10 Elves Look, Elves Say 🌟 🌟
Day 11 Corporate Policy 🌟 🌟
Day 12 JSAbacusFramework.io 🌟 🌟
Day 13 Knights of the Dinner Table 🌟 🌟
Day 14 Reindeer Olympics 🌟 🌟
Day 15 Science for Hungry People 🌟 🌟
Day 16 Aunt Sue 🌟 🌟
Day 17 No Such Thing as Too Much 🌟 🌟
Day 18 Like a GIF For Your Yard 🌟 🌟
Day 19 Medicine for Rudolph 🌟 🌟
Day 20 Infinite Elves and Infinite Houses 🌟 🌟
Day 21 RPG Simulator 20XX 🌟 🌟
Day 22 Wizard Simulator 20XX 🌟 🌟
Day 23 Opening the Turing Lock 🌟 🌟
Day 24 It Hangs in the Balance 🌟 🌟
Day 25 Let It Snow 🌟 🌟

About

Repository for the Advent of Code 2015 challenges

Resources

License

Stars

Watchers

Forks