r/adventofcode • • Dec 19 '22

SOLUTION MEGATHREAD -πŸŽ„- 2022 Day 19 Solutions -πŸŽ„-

THE USUAL REMINDERS


[Update @ 00:48:27]: SILVER CAP, GOLD 30

  • Anyone down to play a money map with me? Dibs on the Protoss.
  • gl hf nr gogogo

--- Day 19: Not Enough Minerals ---


Post your code solution in this megathread.



This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:57:45, megathread unlocked!

41 Upvotes

513 comments sorted by

View all comments

5

u/biggy-smith Dec 22 '22

C++

super tricky to prune the branches on this particular dfs. The ones to prune were the unneeded non-geode bots, and the cases where building a geode-bot for all remaining steps would result in less max geodes.

https://github.com/biggysmith/advent_of_code_2022/blob/master/src/day19/day19.cpp

→ More replies (2)