Discussion thread for day 7 of the Advent of Code - https://adventofcode.com/2023/day/7
Not the prettiest, but it works. Had fun thinking through Part 2 combinations
There were a pit fall for me even in part 1, and took a bit long but get it done
Tried to pretty up my solutions before posting (still not lookers, but much better than when they started):
I usually try to bash through these without planning, which is terrible form in the real world but this isn't there. I end up with ugly but functional workflows with a lot more pieces than would be needed if I took my time. Lots of path for each case where a well applied multifield/tile/etc. could handle many cases at once. Still, work is work:
keep forget the requirement...
Today's one is interesting.
The 2 are almost the same, slight tweak for an extra stream to handle the Jacks.
I handled it essentially as 2 pieces. 'hand ranking', ignoring what the cards 'are' only how many of the same. Then 'sorting' based on actual card values.
I misunderstood the requirement.