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.
Looks like he is inactive so this does not matter. That does not negate the fact some of the test cases are not valid "blackjack rule based" cases. Is should just be count the cards in the hand using some concepts from blackjack. Some of the edge cases are not cool.
Simply, if you can count an
A
as 11 points, and after adding other cards' scores, total score stays at 21 or less, you should do it. Otherwise count it as1
. It's hard to get more specific without revealing too many details =/Click over Blackjack link in the kata description to read the wikipedia article. It's by choice.
The description for this Kata isn't clear. Especially in the case where A can be 1 or 11? How? I tried figuring it out on my own, but I wasn't able to
This comment is hidden because it contains spoiler information about the solution