Solutions to the advent of code 2020 using Python 3.8
Find a file
2020-12-26 11:49:40 +00:00
day_01 Restructured solution 2020-12-01 16:58:19 +00:00
day_02 Tried and failed to simplify day 2, functional programming isn't so clean with type hints in python 2020-12-05 17:03:59 +00:00
day_03 Refactored day 3, reduced line count and probably made code worse 2020-12-05 16:28:44 +00:00
day_04 Minor changes to day 4 2020-12-05 16:13:33 +00:00
day_05 Further improved day 5 solution 2020-12-05 15:44:18 +00:00
day_06 Refactored day 6 to a wonderful functional mess 2020-12-07 00:07:16 +00:00
day_07 Added solutions for day 7 2020-12-07 12:56:50 +00:00
day_08 Added refactored vm for day 8 incase it comes up again 2020-12-08 13:31:26 +00:00
day_09 very small day 9 refactor 2020-12-09 13:50:22 +00:00
day_10 minor refactor 2020-12-10 13:04:30 +00:00
day_11 day 11's solution is not good code 2020-12-11 16:03:31 +00:00
day_12 Added solution for day 12, part 2 2020-12-12 14:33:26 +00:00
day_13 Minor refactor 2020-12-13 23:00:51 +00:00
day_14 Added solution for day 14 2020-12-14 11:43:39 +00:00
day_15 Properly refactored day 15 2020-12-15 13:58:47 +00:00
day_16 Removed unnecessary lines in day 16 2020-12-23 12:11:26 +00:00
day_17 removed unused import 2020-12-17 13:29:38 +00:00
day_18 Added solution for day 18 2020-12-18 11:39:45 +00:00
day_19 Added awful solution for day 19 2020-12-19 18:35:20 +00:00
day_20 Added solution for day 20 part 2 2020-12-20 19:34:27 +00:00
day_21 Added solution for day 21 2020-12-21 11:34:34 +00:00
day_22 Working solution for day 22 2020-12-22 14:22:36 +00:00
day_23 Slight speedup 2020-12-23 08:46:35 +00:00
day_24 Added solution for day 24 2020-12-24 16:08:12 +00:00
day_25 Added solution for day 25 2020-12-26 11:47:09 +00:00
.gitignore Refactored day 11 to a more object oriented style 2020-12-11 13:54:52 +00:00
LICENSE Create LICENSE 2020-12-09 10:12:08 +00:00
README.md Update README.md 2020-12-26 11:49:40 +00:00
requirements.txt Added solution for day 17 2020-12-17 12:57:34 +00:00

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