Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Some spicy nicey code there.
My mistake. Thank you.
You should be able to compare two "full house" hands by just looking at the 3 of a kind cards in each hand. Whoever has the highest 3 of a kind should always win, regardless of the other 4 cards on the table. That's how it works with one deck, so I believe your description for this kata is insufficient.
This comment is hidden because it contains spoiler information about the solution
Hey, I really liked your solution, but I had a question:
Inside your highCard function there's an if statement to check if there is a low straight. What was the motivation for using playin[4]=playin[3], playin[3]=playin[2], etc as opposed to removing the ace from the back of the vector and inserting it at the front?
Took me a while to realize both hands can have the SAME cards (i.e. "KA KH KS 2H 2S" will lose to "KA KH KS 3H 3S"). My understanding was that Texas Hold 'em is played with one deck at a time, but if you treat the problem like you are using multiple decks, you shouldn't have issues.
Just so you know, the right parenthesis for the number theory wikipedia link appears to be missing. Had to manually type it into the browser after clicking the link in order to arrive to the correct page.