Question about Day 07
Ewa-Anna opened this issue · comments
Hello,
I was wondering if you could please kindly look at my code, an attmept to solve AoC puzzle on Day 07 and maybe give me a little hint what am I doing incorrectly? I am not sure where I am making a mistake and I feel like I am close to solution and yet no there.
I would be very grateful for your help and I hope I am not violating rules on your repository with this question. Apologies if I do.
Thank you,
Ewa
@Ewa-Anna hello, you aren't violating any rules don't worry about it 😄, but @aymanhs is right that this isn't really the right place to ask (also, Issues should be used for... well, issues you find in the repo, a discussion would be more appropriate for this question). You should ask on the subreddit instead (please read the rules there first and use an appropriate post title!).
In any case, I can see from a quick glance at the code that:
- The
score()
function seems OK to me, so the problem is somewhere else. - You are sorting the cards in the hands with your
custom_sort()
. That's not something that you should do, read the rules more carefully.