Skip to content
Permalink
Branch: master
Commits on Dec 3, 2019
  1. Tweak day 3 solution with itertools

    SebastiaanZ committed Dec 3, 2019
    Small tweak to factor out a double for loop. It does not really
    mpact speed.
  2. Add `--timeit` CL-option to quickly benchmark solutions

    SebastiaanZ committed Dec 3, 2019
    I've added a `--timeit NUMBER` optional command line argumenent to be
    able to quickly benchmark a solution. The NUMBER argument specifies
    the number of iterations to calculate the average over.
  3. Calculate total steps per intersection to factor out addition

    SebastiaanZ committed Dec 3, 2019
    Calculate total steps taken per intersection for both of the wires
    combined to factor out the addition in the generator expresion that
    determines the minimal intersection distance.
  4. Add solution for day 3 of Advent of Code

    SebastiaanZ committed Dec 3, 2019
    I have added my solution for day 3 of the Advent of Code. While this
    was not my initial solution (that one used numpy), this is a solution
    that avoids creating all the intermediate points for the different
    line segments of the wires.
  5. Update pyflakes to prevent `flake8` from breaking on walrus

    SebastiaanZ committed Dec 3, 2019
    The walrus operator made `flake8` crash because of a bug in PyFlakes,
    which has since been fixed on `master` of PyFlakes' GH repo. I'm now
    installing that version directly instead of using the PyPI version,
    which means that `flake8` works again (although it still doesn't like
    the walrus operator).
    
    I've also added `flake8-import-order` and `flake8-tidy-imports` to
    keep the import sections clean.
Commits on Dec 2, 2019
  1. Remove unused imports in day 2

    SebastiaanZ committed Dec 2, 2019
    This commit removes two imports in the solution for day 2 that have
    become unnecessary after the refactoring of the repository.
  2. Update README.md

    SebastiaanZ committed Dec 2, 2019
  3. Update README.md

    SebastiaanZ committed Dec 2, 2019
  4. Factor operations dict out of `ship_computer` function

    SebastiaanZ committed Dec 2, 2019
    This commit factors out the creation of partial functions for the
    ship computer's addition and multiplication operations, as it's not
    useful to recreate them every time the computer runs.
    
    In addition, I've also changed the name of the function `_math` to
    something more generic to signify that it's a generic CPU operation.
  5. Fix return annotation of `main` in day01 and day02

    SebastiaanZ committed Dec 2, 2019
    I've inadvertently left the old annotation of `None` in place after
    refactoring the way solutions are run. This commit rectifies that
    mistake by changing it to `Tuple[int]`,
  6. Add solution for day two

    SebastiaanZ committed Dec 2, 2019
    I've added my solution for day two of the Advent of Code. It includes
    the input data, the solution itself, and a unit test for the central
    `ship_computer` function that runs the intcode application.
  7. Add solution of day one

    SebastiaanZ committed Dec 2, 2019
    I've added my solution of day one of the Advent of Code. It includes
    the input data, the solution itself, and two simple unit tests using
    the example data provided in the puzzle.
  8. Add core functionality of my solutions manager

    SebastiaanZ committed Dec 2, 2019
    I've added the core functionality of my solutions manager, which includes:
    
    - A CLI to run the solution of a given day;
    
    - A CLI to create a solution directory from a template;
    
    - A data tool that fetches the input automatically;
    
    - A basic logging set-up with a CL verbosity control;
    
    - A basic test directory structure for adding unit tests.
  9. Set up the initial Advent of Code environment

    SebastiaanZ committed Dec 2, 2019
    I've added an updated version of the README, created a `Pipfile` and `Pipfile.lock`, added a `requirements.txt`, and added some minimal `flake8` configurations to the repository.
Commits on Dec 1, 2019
  1. Initial commit

    SebastiaanZ committed Dec 1, 2019
You can’t perform that action at this time.