+ 9

Coach Task: Poker Hand

My solution passes 7 out of 8 tests ... and no matter how hard I try, I just can’t find a solution for the last test (test number in order 7). Judging by the behavior, this is a situation where the weight of the maximum card is displayed, when other situations are not fulfilled ... Therefore, please specify the output format in this situation. I tried many options, for example: - "High Card: A" or "High Card: 3" - "High Card: A" - "A" - "High Card: Ace" or "High Card: 3" - "High Card: Ace" - "Ace" Here is what is written in the format description: High Card: Highest value card (from 2 to Ace). Thank you

7th Jan 2020, 7:06 PM
Michail Getmanskiy
Michail Getmanskiy - avatar
4 odpowiedzi
+ 6
Try "High Card".
7th Jan 2020, 7:20 PM
Diego
Diego - avatar
+ 15
Diego exactly "High Card" should be in that condition. If method has created then after executing the else part evaluate to true and print ("High Card")
7th Jan 2020, 7:21 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 12
Michail Getmanskiy yes indeed 7th test case is about the "High Card" and only print("High Card") is enough but what output format you have needed I'm confused in that as if you have solved all other cases then remaining one can be done in else condition.
7th Jan 2020, 7:19 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 7
yes, just "High Card" - and everything passed, all the tests are ok ... but it’s written after all, the output weight .... )))
7th Jan 2020, 7:22 PM
Michail Getmanskiy
Michail Getmanskiy - avatar