JavaScript solutions to advent of code challenges
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Advent of Code JavaScript Solutions

This is a repository for me to attempt the Advent of Code challenges in JavaScript.

In past years I've solved them using C# and F#. read about my solutions here. This repository is for me to improve my JavaScript skills by solving the puzzles with node.js as ES6. I've ported my 2015 solutions to JavaScript, and in 2017 I just used JavaScript.

To get started:

npm install

To solve all puzzles for this year

node index.js

To run all tests for 2015:

node index.js 2015

To run tests for 2015 day 10

node index.js 2015 10

To run Jasmine unit tests

npm test

To run a subset of Jasmine unit tests

npm test -- --filter="flatMap"

Blog posts about 2017 solutions