Generating all 5 card poker hands
Your overall approach is sound. I’m pretty sure the problem lies with your make_canonical function. You can try printing out the hands with num_cards set to 3 or 4 and look for equivalencies that you’ve missed. I found one, but there may be more: # The inputs are equivalent and should return the same value … Read more