adventofcode 2021-12-24

🧵 Day 24 Solutions Thread: post your solution here

Decompiled code by hand and run brute force, takes 10 mins each part https://github.com/nbardiuk/adventofcode/blob/master/2021/src/day24.clj

🙌🏻 1

@nbardiuk you’re a real hacker!

https://gitlab.com/maximoburrito/advent2021/-/blob/main/src/day24/main.clj Not an automated solution, but it's the code I used at the repl to figure it out

I solved it by hand and then based on this created a macro to generate search code https://github.com/genmeblog/advent-of-code/blob/master/src/advent_of_code_2021/day24.clj

I just wrote some code to run the monad program

to check my calculations but the meat of the problem I solved by hand 🙂

Went ahead and wrote a program anyway because it felt good :D

I'm not getting part1 tonight. I made good progress reverse engineering the code and have, I think, part of my solution. But I'm going to have to come at it fresh tomorrow. sigh... Good luck to anyone still going...