Tip:
Highlight text to annotate it
X
So here's the function cardranks.
It takes a hand, pulls out the ranking for each hand,
makes that into a number, sorts them so that the highest numbers are first,
and returns that, and now I'm claiming
that we can make 1 change to cardranks
so that it will handle the case of an ace-low straight
and come up with the right representation for that
in terms of ranks that will allow the rest of the program to function properly.
Can you come up with that change?