🧵 Day 24 Solutions Thread: post your solution here
https://github.com/zelark/AoC-2021/blob/main/src/zelark/aoc_2021/day_24.clj
Decompiled code by hand and run brute force, takes 10 mins each part https://github.com/nbardiuk/adventofcode/blob/master/2021/src/day24.clj
@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
medium sized writeup with spoilers: https://github.com/tschady/advent-of-code/blob/main/doc/2021.adoc#aoc2021d24
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...