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.
valid_braces("((")==true
becausebraces
contains only open braces and its size is even.In the
getRank
definitionHandRank::RoyalFlush
is obtained for straight flush hand with ace, thereforecompare(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.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.