+ 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
4 Answers
+ 6
Try "High Card".
+ 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")
+ 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.
+ 7
yes, just "High Card" - and everything passed, all the tests are ok ... but itâs written after all, the output weight .... )))