Solutions to the advent of code 2020 using Python 3.8
- Python 100%
| day_01 | ||
| day_02 | ||
| day_03 | ||
| day_04 | ||
| day_05 | ||
| day_06 | ||
| day_07 | ||
| day_08 | ||
| day_09 | ||
| day_10 | ||
| day_11 | ||
| day_12 | ||
| day_13 | ||
| day_14 | ||
| day_15 | ||
| day_16 | ||
| day_17 | ||
| day_18 | ||
| day_19 | ||
| day_20 | ||
| day_21 | ||
| day_22 | ||
| day_23 | ||
| day_24 | ||
| day_25 | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
Advent of Code 2020
This repo contains my solutions to the advent of code 2020 using Python 3.8
For many of the earlier challenges I've prioritised one-line solutions because I enjoy it and it encourages me to use more interesting parts of the standard library. The code is bad, I know.
Setup
To install requirements to your virtual environment, run pip install -r requirements.txt
Running tests
I've used pytest as my test runner for the advent of code this year.
To run all unit tests, run pytest
To run unit tests for a specific day, run pytest day_XX
Running solutions on input files
To run the solution file for a given day's input file, run python day_XX/solution.py