Ad
  • Custom User Avatar

    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.

  • Default User Avatar

    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 as 1. It's hard to get more specific without revealing too many details =/

  • Custom User Avatar

    Click over Blackjack link in the kata description to read the wikipedia article. It's by choice.

    ["A", "J"]                      ==>  21 <- "A" here is chosen to be an 11 
    
  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution