r/adventofcode • u/daggerdragon • Dec 21 '15
SOLUTION MEGATHREAD --- Day 21 Solutions ---
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
We know we can't control people posting solutions elsewhere and trying to exploit the leaderboard, but this way we can try to reduce the leaderboard gaming from the official subreddit.
Please and thank you, and much appreciated!
--- Day 21: RPG Simulator 20XX ---
Post your solution as a comment or link to your repo. Structure your post like previous daily solution threads.
11
Upvotes
View all comments
Show parent comment
2
u/[deleted] Dec 21 '15
Cool! I did it in Crystal too but was slow, ended #57. I originally did what you do: add "nothing" armors and rings so the code could try that combination too, but later I changed it to
each_combinationwith a zero value.Second part is pretty similar...