cjlarose / advent-2021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2021

Solutions to Advent of Code 2021.

Run a problem

To run the solution for Day 1, execute

stack run 1

Run all tests

stack test

Run tests for specific problem

stack test --ta '-p "Day 24"'

Download problem input

Set the env var ADVENT_SESSION_COOKIE to your cookie for adventofcode.com. Then execute

export ADVENT_SESSION_COOKIE=session=abcd
./bin/download_input.sh 1

to download the input for Day 1.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 96.3%Language:Shell 3.7%