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
@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)
re: advent of code 2022 day 10
@thingywott the only actual new feature i used is
Enum.nonmember
, a method for having properties of an enum without them being considered enum membersbut that's pretty nice