Skip to content

Latest commit

 

History

History
79 lines (62 loc) · 1.77 KB

README.md

File metadata and controls

79 lines (62 loc) · 1.77 KB

Advent of Code 2020

My solutions to AoC 2020

Setup/Dependencies

So far, none as it only uses python standard modules. If that changes in the future, either:

  • pip install -r requirements.txt
  • make init

Run

Either:

  • bin/aoc:
usage: aoc [-h] [-p {1,2}]
           [-d {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}]
           [inputfile]

Compute AoC 2020 answers

positional arguments:
  inputfile             if unspecified tries to read from stdin and ifthat
                        fails, it reads the default input file forthat day

optional arguments:
  -h, --help            show this help message and exit
  -p {1,2}, --part {1,2}
                        Filter the answer the by the part number
  -d {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}, --day {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}
                        Filter the answer the by the advent day
  • make run

Test

Either:

  • tests/test_aoc.py
  • make test

Coverage

Day Part 1 Part 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24