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.
In
highCard
implementation shift of card values is not happened for straight flush. As a result,compare(PokerHand("6S 7S 8S 9S TS"), PokerHand("AS 2S 3S 4S 5S"))==Result::Win
is false.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?
The issue isn't the number of tests, it's that they are random. You should do the same tests with the same input every time.
This comment is hidden because it contains spoiler information about the solution