From 9d71f4ea8c61b678b3e475d4c7102e1fa62dbbb1 Mon Sep 17 00:00:00 2001 From: Dave Burke Date: Tue, 25 Jan 2022 21:19:15 -0600 Subject: [PATCH] Add a couple more notes --- 10_Blackjack/java/src/Blackjack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/10_Blackjack/java/src/Blackjack.java b/10_Blackjack/java/src/Blackjack.java index d3791a29..b779e15f 100644 --- a/10_Blackjack/java/src/Blackjack.java +++ b/10_Blackjack/java/src/Blackjack.java @@ -52,6 +52,7 @@ public class Blackjack { } // Consider adding a Dealer class to track the dealer's hand and running total. + // Alternately, the dealer could just be a Player instance where currentBet=0 and is ignored. LinkedList dealerHand = new LinkedList<>(); // TODO deal two cards to the dealer @@ -137,6 +138,7 @@ public class Blackjack { DEALER'S TOTAL= 200 */ // this should probably take in a "Dealer" instance instead of just the dealer hand so we can update the dealer's total. + // currentBets of each player are added/subtracted from the dealer total depending on whether they win/lose (accounting for doubling down, insurance etc.) // remember to handle a "PUSH" when the dealer ties and the bet is returned. }