Skip to content

Commit 4879aaa

Browse files
committed
Ace card
1 parent 138843b commit 4879aaa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ assertEquals(kingofDiamonds, 10);
6464
// Given a card with a rank of "A",
6565
// When the function is called with an Ace,
6666
// Then it should, by default, assume the Ace is worth 11 points, which is a common rule in blackjack.
67+
const aceofClubs = getCardValue("A♣");
68+
assertEquals(aceofClubs, 11);
6769

6870
// Handle Invalid Cards:
6971
// Given a card with an invalid rank (neither a number nor a recognized face card),

0 commit comments

Comments
 (0)