|
@@ -118,8 +118,9 @@ public class BlackJack extends CardGame implements Gambling {
|
118
|
118
|
|
119
|
119
|
while (playAgain == true) {
|
120
|
120
|
|
121
|
|
- aConsole.println("*** Welcome " + this.aPlayer.getName() +
|
122
|
|
- ", let’s play BlackJack! ***\n");
|
|
121
|
+ aConsole.println("\u2664 \u2663 \u2661 \u2666 \u2662 \u2665 \u2667 \u2660 \u2664 \u2663 \u2661 \u2666 \u2662 \u2665 \u2667 \u2660 \u2664 \u2663 \u2661 \u2666 \u2662 \u2665\n"
|
|
122
|
+ + "*** Welcome " + this.aPlayer.getName() + ", let’s play BlackJack! ***\n"+
|
|
123
|
+ "\u2664 \u2663 \u2661 \u2666 \u2662 \u2665 \u2667 \u2660 \u2664 \u2663 \u2661 \u2666 \u2662 \u2665 \u2667 \u2660 \u2664 \u2663 \u2661 \u2666 \u2662 \u2665\n");
|
123
|
124
|
|
124
|
125
|
int wageAmount = wageMoney();
|
125
|
126
|
|
|
@@ -152,7 +153,7 @@ public class BlackJack extends CardGame implements Gambling {
|
152
|
153
|
//I need to figure out how I could only show one card
|
153
|
154
|
String houseHandString = houseHandToString(houseHand, 1);
|
154
|
155
|
aConsole.println("\n The house has drawn: \n" + houseHandString +
|
155
|
|
- "And has one card faced down");
|
|
156
|
+ "And has one card faced down\n");
|
156
|
157
|
|
157
|
158
|
//Decision
|
158
|
159
|
while (aPlayerScore < 21) {
|
|
@@ -173,12 +174,12 @@ public class BlackJack extends CardGame implements Gambling {
|
173
|
174
|
|
174
|
175
|
//House winning situation
|
175
|
176
|
if (aPlayerScore > 21) {
|
176
|
|
- aConsole.println("Bust!");
|
|
177
|
+ aConsole.println("\nBust!\n");
|
177
|
178
|
win = false;
|
178
|
179
|
betChages(bet);
|
179
|
180
|
aConsole.println("Your current available chips: \n" + aPlayer.getTotalChips());
|
180
|
181
|
}else if ((aHouseScore >= aPlayerScore && aHouseScore < 21) || aHouseScore == 21) {
|
181
|
|
- aConsole.println("You lose\n" + "Your score: " + aPlayerScore +
|
|
182
|
+ aConsole.println("\nYou lose\n" + "Your score: " + aPlayerScore +
|
182
|
183
|
"\nHouse score: " + aHouseScore);
|
183
|
184
|
aConsole.println("\n Dealer's hand: \n" + handToString(houseHand));
|
184
|
185
|
win = false;
|
|
@@ -188,13 +189,13 @@ public class BlackJack extends CardGame implements Gambling {
|
188
|
189
|
|
189
|
190
|
//Player winning situation
|
190
|
191
|
else if (aHouseScore < 21) {
|
191
|
|
- aConsole.println("You win!");
|
|
192
|
+ aConsole.println("\nYou win!\n");
|
192
|
193
|
win = true;
|
193
|
194
|
betChages(bet);
|
194
|
195
|
aConsole.println("Your current available chips: \n" + aPlayer.getTotalChips());
|
195
|
196
|
} else {
|
196
|
197
|
//aConsole.println("You win!");
|
197
|
|
- aConsole.println("You win!\n" + "Your score: " + aPlayerScore +
|
|
198
|
+ aConsole.println("\nYou win!\n" + "Your score: " + aPlayerScore +
|
198
|
199
|
"\nHouse score: " + aHouseScore);
|
199
|
200
|
win = true;
|
200
|
201
|
betChages(bet);
|
|
@@ -206,7 +207,7 @@ public class BlackJack extends CardGame implements Gambling {
|
206
|
207
|
}
|
207
|
208
|
}
|
208
|
209
|
|
209
|
|
- private void playerHit(List<Card> playerHand) {
|
|
210
|
+ public void playerHit(List<Card> playerHand) {
|
210
|
211
|
//draw a new card
|
211
|
212
|
Card drawSingleCard = drawSingleCard();
|
212
|
213
|
playerHand.add(drawSingleCard);
|