Skip to content

Commit 8da2fe2

Browse files
authored
Update black_jack.py
For function value_of_ace, the accurate instruction for A in hand is to return 1. Otherwise the tests fail. The instructions actually say 1, but the doc string says different.
1 parent bc67d58 commit 8da2fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/concept/black-jack/black_jack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def value_of_ace(card_one, card_two):
4040
:return: int - either 1 or 11 value of the upcoming ace card.
4141
4242
1. 'J', 'Q', or 'K' (otherwise known as "face cards") = 10
43-
2. 'A' (ace card) = 11 (if already in hand)
43+
2. 'A' (ace card) = 1 (if already in hand)
4444
3. '2' - '10' = numerical value.
4545
"""
4646

0 commit comments

Comments
 (0)