SOLVED | guys pls help. | Sololearn: Learn to code for FREE!

+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

6/17/2022 3:11:07 PM

dottxt | less active

11 Answers

New Answer

+1

Can you test my code? https://code.sololearn.com/cDa7BdsTQwtk/?ref=app

+2

+2

it passed all tests

+2

ok I'll ask u in private messages,ok?

+1

It is difficult to help you cause I forgot the exact task and I cannot access it anymore cause I am not pro

+1

+1

0

Have you solved it already? I finally got time to check it.

0

Nice, now you can compare both codes and try to find your mistake you can ask me if anything isnt clear 🙂

0

sample text ok, dm me

0

sample text direct messages = private messages 😂