advent of code 2022 day 1
day 1 is always trivial. instead here's this overengineered template generator i wrote
https://git.hollymcfarland.com/monorail/advent-of-code-2022/src/branch/main/generate.py
the only reason to have this at all is that in previous years i kept forgetting to change part='a'
to part='b'
when i copied everything over to the second problem file
advent of code 2022 day 2
i completely overengineered my solution, made a whole rps enum class with methods for determining a winner and the score of a round
i even had to upgrade python to use a new 3.11 feature
https://git.hollymcfarland.com/monorail/advent-of-code-2022/src/branch/main/day-02
advent of code 2022 day 3
and day 3 was easy with set intersections
https://git.hollymcfarland.com/monorail/advent-of-code-2022/src/branch/main/day-03
advent of code 2022 day 10
It's SO overengineered lmao https://git.hollymcfarland.com/monorail/advent-of-code-2022/src/branch/main/day-10/part-2.py
It's got classes! It's got nested classes! It's got metaclasses! It's got OCR! It's got decorators I've been meaning to learn about! It's got new Python 3.11 features! It's got an unused method that I just realized is still there from part 1! Hopefully we keep working on the device so the effort wasn't wasted, haha
advent of code 2022 day 12
@monorail i wonder if you did the thing i lost a lot of time to
(without spoiling it, i didn't read the rules well enough, and made an assumption that works with the test data, but made the full thing impossible)
re: advent of code 2022 day 12
@thingywott nope, i just swapped out the search alg for a tried and true one and now it works
i wonder what i was doing wrong, afaik it should have been just a normal search...