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.
x
should equaly
means that your code returnedx
, but the test expected your code to returny
. You might be reading that backwards.score_hand(['A','A']) expected 20 not 12
The 'A' is variable, basically always equal to 1 unless you need the extra 10 then you can tack it on (10 that is). There is only a few cases where you want the 'A' to be 11.
[ 'A', '7', 'K', '8', '10' ]
expected 46 to equal 36
is this right?
Approved
python new test framework
The aces part left my brain smoking lol........
i thought all aces are considered 1 point. I have already solved the problem, thanks
It's in the instructions:
You choose how to count it to your benefit. Google "Blackjack rules" or click over the link to Wikipedia in the description.
why the {'8', 'A', 'A'} combination is 20 but not 10? where is can read about this rules?
Simpler than I thought
Thanks for this interesting kata anyway :)
Ooop I hadn't realised these comments are visible by those that haven't solved it!
Cheers man, that gave me a good idea...
Job Done!
This comment is hidden because it contains spoiler information about the solution
Loading more items...