Ad
  • Default User Avatar

    valid_braces("((")==true because braces contains only open braces and its size is even.

  • Default User Avatar

    In the getRank definition HandRank::RoyalFlush is obtained for straight flush hand with ace, therefore compare(PokerHand("6S 7S 8S 9S TS"), PokerHand("AS 2S 3S 4S 5S"))==Result::Win is false.
    Also the "circular" implementation of checkStraight seems to be not consistent with poker ranking rules.

  • 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.