Skip to content

Latest commit

 

History

History

2018

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Advent of Code 2018

I'm doing the Advent of Code for the first time! 🎅🏻 Noticed the event last year, but sadly after the fact. My language of choice this year is ReasonML, which has been my go-to language for the past months.

Advent of Code 2018 Story

"We've detected some temporal anomalies," one of Santa's Elves at the Temporal Anomaly Research and Detection Instrument Station tells you. She sounded pretty worried when she called you down here. "At 500-year intervals into the past, someone has been changing Santa's history!"

"The good news is that the changes won't propagate to our time stream for another 25 days, and we have a device" - she attaches something to your wrist - "that will let you fix the changes with no such propagation delay. It's configured to send you 500 years further into the past every few days; that was the best we could do on such short notice."

"The bad news is that we are detecting roughly fifty anomalies throughout time; the device will indicate fixed anomalies with stars. The other bad news is that we only have one device and you're the best person for the job! Good lu--" She taps a button on the device and you suddenly feel like you're falling. To save Christmas, you need to get all fifty stars by December 25th.

Collect stars by solving puzzles. Two puzzles will be made available on each day in the advent calendar; the second puzzle is unlocked when you complete the first. Each puzzle grants one star. Good luck!

Days

Day #1  #2
Day 1: Chronal Calibration 🌟 🌟
Day 2: Inventory Management System 🌟 🌟
Day 3: No Matter How You Slice It 🌟 🌟
Day 4: Repose Record 🌟 🌟
Day 5: Alchemical Reduction 🌟

Running code and tests

$ git clone https://github.com/believer/advent-of-code.git
$ cd advent-of-code/2018
$ npm install
$ npm run build && npm run test:ci