Ad
  • Default User Avatar

    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.

  • Custom User Avatar

    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?

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution