Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.91 KB

README.md

File metadata and controls

30 lines (25 loc) · 1.91 KB

My Advent of Code solutions

Towards the end of the year, I brush up my coding skills with Advent of Code puzzles. I tend to wake up early for the first few challenges but after a week or so, life catches up. My recent goal has become to at least finish one complete year of puzzles.

HOWTO run individual solutions

I make use of the Advent of Code Data library, which can pull in puzzle data. This also makes is easy for you to run my solutions on your puzzle data, allowing you to verify my solutions without me exposing my puzzle input (See the creators statement on this). All you have to do is to export your session token with your preferred method.

HOWTO Solve for a new day

Inspired by the Real Python article, I started to use templates and perform automated testing on provided examples before running my code on the actual input.

To automatically create and populate the provided templates, run the copier copy copier_template . command. This will ask you for what year and day you want to generate the solution and test files. Makes use of copier

Example code is expected to be found in files example1.txt and up. Implement your solutions in the appropriate functions and enable the relevant tests.

TODO

  • Make copier instantiate years and days as packages
    • Reconsider having folders for years start with number. This makes imports impossible.
  • For copier, make current date the default
  • Rewrite template to be class based (Use Tom Meulenkamp as example)
    • Make class diagram design
    • Include timing of execution
    • Rewrite existing code to be used with classes
  • Rewrite existing solutions using regex & groups