+ 2

SOLVED | guys pls help.

You are playing poker with your friends and need to evaluate your hand. A hand consists of five cards and is ranked, from lowest to highest, in the following way: High Card: Highest value card (from 2 to Ace). One Pair: Two cards of the same value. Two Pairs: Two different pairs. Three of a Kind: Three cards of the same value. Straight: All cards are consecutive values. Flush: All cards of the same suit. Full House: Three of a kind and a pair. Four of a Kind: Four cards of the same value. Straight Flush: All cards are consecutive values of same suit. Royal Flush: 10, Jack, Queen, King, Ace, in same suit. Task: Output the rank of the give poker hand. in Sololearn's code coach, project poker hand, tests 5,6 are failed. (i suspect that consecution evaluation was done wrong.)what's the matter? p.s.I'll be glad for clear explanation https://code.sololearn.com/c0LJ7w19bWH9/?ref=app

17th Jun 2022, 3:11 PM
dottxt | off
dottxt | off - avatar
5 Antworten
+ 2
updated
17th Jun 2022, 4:53 PM
dottxt | off
dottxt | off - avatar
+ 2
it passed all tests
19th Jun 2022, 8:42 AM
dottxt | off
dottxt | off - avatar
+ 2
ok I'll ask u in private messages,ok?
19th Jun 2022, 8:54 AM
dottxt | off
dottxt | off - avatar
+ 1
what is dm?
19th Jun 2022, 8:55 AM
dottxt | off
dottxt | off - avatar
+ 1
🙃
19th Jun 2022, 8:56 AM
dottxt | off
dottxt | off - avatar