The only good reason to use AI in programming puzz...
# advent-of-code
j
The only good reason to use AI in programming puzzles: hey claude, please scan all my repos for AoC and EverybodyCodes solutions and let me know how many times I reinvented the wheel and/or reimplemented the same algorithms all over again.
BFS: 24 different puzzle files with own implementations + 5 “utils”
Position+Direction: 35 times (including several utils)
Cycle detection + iteration skips: 12 times
Memoization: 14
Priority Queue: 7
Dijksta: 8
modpow / modint / crt: 6 implementations
gcd / lcm: 5
Cellular Automata: 8
Merge / Split ranges: 6
Union-Find: 3
Bron-Kerbosch: 3 versions (but in one puzzle!)
I really really really finally need to build myself this util library I am always thinking about near 10th day of each event...
advent of code intensifies 3
n
Yeah, I have quite a set of utility functions and classes. One concrete is CharArea which very much simplifies creating, scanning, navigating, and updating 2-dimensional character array
d
Have Claude build the library for you
j
where’s the fun in that 🙂
n
Yeah, I still bey much like coding also my helper functions by hand. Repo right now is https://github.com/nkiesel/GameUtils