Ad
  • Custom User Avatar

    The description of this kata is poor. It does not state fully the winning conditions. A player wins if they have BJ and the croupier does not. But what about other cases? There is no information at all what to do with other situations, for instance if noone has BJ, or the croupier has more than 21 and players less than 21. Please update.

  • Custom User Avatar

    ['A', '10', '3', '4'] ['6', 'K', '8', 'A', '8', '4', 'A', 'K'] ['10', '9', 'J', '2', 'Q', '7'] ['A', 'A', '7', '7', 'K'] ['J', '7', 'Q', '5', 'Q', 'J', '3', '9', '4', 'K', 'A', '7', '5', 'K', '9', '10', 'J', '8', '6', 'J']

    Similarly here. According to the random tests noone is winning. According to me, the first player has either 28 points or 18, so we go for 18 and she/he is winning. We go for 18 points (ace counting for 1) since according to the description we go always for more points. What am I missing?

  • Custom User Avatar

    Test 21: ['J', 'A'] ['K', '10'] ['10', '2', 'Q'] ['8', '2'] ['A', 'J', '10', '2', 'A', '2', 'A', '3', '5']

    Why player 1 is considered a winner here? The croupier has a BJ so the players loses. What am I missing?

  • Custom User Avatar

    I do not get this:
    test.assert_equals(mega_mind(12, 4, 3, 2), 3)

    why it supposed to be 3? I mean at the start, after the first round the HP of the bad guy is 0, so there is no possiblity of him to use regen powers, so the answer supposed to be 1. What am I missing?