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 10
@monorail "It's got OCR!"
hell yeah! that rules~
for mine, i just spit out a table to a literate doc that i transcribed visually, but this is much cooler!
(how have the new features been btw?)
re: advent of code 2022 day 10
@monorail oh yeah! it's nice to be able to use enums to specify grouped values of things~
i really like how different everyone has approached these problems, like i don't think mine could get any more different ahah
(here's mine btw! https://gist.github.com/Archenoth/19bf137701063d6b0bd42358e92d7125#day-10-cathode-ray-tube)