/advent-of-code-2020

Advent of Code 2020

Primary LanguagePythonMIT LicenseMIT

🎅 Advent Of Code 2020 🎄

Katherine Eaton's page for the Advent of Code 2020 Challenge.

Gitpod ready-to-code codecov License: MIT

Install

Pip

git clone https://github.com/ktmeaton/advent-of-code-2020.git
cd advent-of-code-2020/
pip install .[dev]

Gitpod

Start up a Gitpod workspace:

Gitpod ready-to-code

Usage

Run as a script:

advent_of_code_2020/advent_of_code_2020.py

Run as a module:

from advent_of_code_2020.advent_of_code_2020 import AdventOfCode2020
advent = AdventOfCode2020()
advent.day01(input="input/day01.txt", output="output/day01.log")

Check the output for a particular day:

cat output/day01.log

Answers

Implementation

Testing

python -m coverage run -m pytest --cov=advent_of_code_2020 --cov-report=xml test/test_advent.py