-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsampleRound.txt
389 lines (283 loc) · 9 KB
/
sampleRound.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
Sat Dec 22 21:43:10 EST 2018
bash-3.2$ ./blackjack -h
A summary of each command is provided below.
P, Pass: Do NOT take a card and end turn.
H, Hit: Request a card from the Dealer.
D, Double Down: Double your wager and add an extra card to your hand.
No additional cards may be requested after this point.
S, Split: Split hand into two seperate hands. Note, this can
only be done with a pair. An equal wager will be placed
on the second hand. If an Ace is split, only one additional
card is able to be added to either hand. Each hand is treated
seperately, and a maximum of two splits can be performed in a
single round.
V, View Dealer's
Hand: View the Dealer's Hand
Q, Quit Round: Quit the round prematurely. Your wage will be forfeited.
Need more help? Please view the README.
bash-3.2$ ./blackjack
Welcome to Blackjack!
Please Enter the Number of Players at the Table: 4
Please enter your names below:
Player 1: Vinod
Player 2: Eric
Player 3: Albert
Player 4: John
*********************** Round 1 ***********************
Please place your bets below:
Vinod: $300
Eric: $400
Albert: $100
John: $600
All bets are final. Cards are now being dealt.
It's your turn, Vinod:
Hand 1: 15
Four of Diamonds
Ace of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Jack of Clubs to Hand 1 for a total value of 15
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added King of Hearts to Hand 1 for a total value of 25
Bust! Your Hand 1 value is above 21! You lose $300
It's your turn, Eric:
Hand 1: 9
Six of Clubs
Three of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): D
You doubled down and increased your wager to $800
You take a Two of Hearts for a total value of 11
It's your turn, Albert:
Hand 1: 13
Eight of Hearts
Five of Hearts
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Four of Spades to Hand 1 for a total value of 17
What will you do with Hand 1?(P:H:S:D:V:Q): P
It's your turn, John:
Hand 1: 17
Ten of Spades
Seven of Spades
What will you do with Hand 1?(P:H:S:D:V:Q): v
Here's the dealer's visible card:
Queen of Diamonds
What will you do with Hand 1?(P:H:S:D:V:Q): P
The dealer reveals his/her Face Down Card:
Hand: 19
Queen of Diamonds
Nine of Diamonds
Round 1 Over! Here's what happened:
Vinod loses $300 from busting Hand 1
Vinod has $700 remaining
Eric loses $800 from Hand 1
Eric has $200 remaining
Albert loses $100 from Hand 1
Albert has $900 remaining
John loses $600 from Hand 1
John has $400 remaining
Play again? (Y:N): Y
*********************** Round 2 ***********************
Please place your bets below:
Vinod: $500
Eric: $100
Albert: $50
John: $300
All bets are final. Cards are now being dealt.
The dealer has a Blackjack!
Vinod loses $500.
Eric loses $100.
Albert loses $50.
John loses $300.
Round 2 Over! Here's what happened:
Vinod has $200 remaining
Eric has $100 remaining
Albert has $850 remaining
John has $100 remaining
Play again? (Y:N): Y
*********************** Round 3 ***********************
Please place your bets below:
Vinod: $50
Eric: $20
Albert: $10
John: $100
All bets are final. Cards are now being dealt.
It's your turn, Vinod:
Hand 1: 20
King of Clubs
Jack of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): S
You have split Jack's and placed an equal wager on the second hand
Eight of Clubs was added to Hand 1 for a total value of 18
Ten of Hearts was added to Hand 2 for a total value of 20
What will you do with Hand 1?(P:H:S:D:V:Q): P
What will you do with Hand 2?(P:H:S:D:V:Q): D
You doubled down and increased your wager to $100
You take a Queen of Spades for a total value of 30
Bust! Your hand value is above 21! You lose $100
It's your turn, Eric:
Hand 1: 12
Two of Clubs
King of Hearts
What will you do with Hand 1?(P:H:S:D:V:Q): H
You doubled down and increased your wager to $40
You take a Ace of Diamonds for a total value of 13
It's your turn, Albert:
Hand 1: 6
Four of Hearts
Two of Hearts
What will you do with Hand 1?(P:H:S:D:V:Q): D
Oops! Your wager is too high to double down.
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Five of Clubs to Hand 1 for a total value of 11
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Seven of Hearts to Hand 1 for a total value of 18
What will you do with Hand 1?(P:H:S:D:V:Q): P
It's your turn, John:
Hand 1: 10
Six of Spades
Four of Spades
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Nine of Spades to Hand 1 for a total value of 19
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Jack of Diamonds to Hand 1 for a total value of 29
Bust! Your Hand 1 value is above 21! You lose $100
The dealer reveals his/her Face Down Card:
Hand: 17
Ace of Diamonds
Six of Diamonds
Round 3 Over! Here's what happened:
Vinod wins $50 from Hand 1
Vinod loses $100 from busting Hand 2
Vinod has $150 remaining
Eric loses $40 from Hand 1
Eric has $60 remaining
Albert wins $500 from Hand 1
Albert has $1350 remaining
John loses $100 from busting Hand 1
John has $0 remaining
Play again? (Y:N): Y
*********************** Round 4 ***********************
Please place your bets below:
Vinod: $150
Eric: $60
Albert: $500
All bets are final. Cards are now being dealt.
It's your turn, Vinod:
Hand 1: 18
King of Clubs
Eight of Diamonds
What will you do with Hand 1?(P:H:S:D:V:Q): P
It's your turn, Eric:
Hand 1: 12
Two of Clubs
Ten of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Three of Spades to Hand 1 for a total value of 15
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Five of Diamonds to Hand 1 for a total value of 20
What will you do with Hand 1?(P:H:S:D:V:Q): P
It's your turn, Albert:
Hand 1: 14
Four of Hearts
Queen of Hearts
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Seven of Clubs to Hand 1 for a total value of 21
What will you do with Hand 1?(P:H:S:D:V:Q): P
The dealer reveals his/her Face Down Card:
Hand: 17
Six of Spades
Ace of Spades
Round 4 Over! Here's what happened:
Vinod wins $150 from Hand 1
Vinod has $300 remaining
Eric wins $60 from Hand 1
Eric has $120 remaining
Albert wins $500 from Hand 1
Albert has $1850 remaining
Play again? (Y:N): Y
*********************** Round 5 ***********************
Please place your bets below:
Vinod: $300
Eric: $120
Albert: $850
All bets are final. Cards are now being dealt.
BLACKJACK!! Albert wins $1275 with:
Hand 1: 21
Queen of Diamonds
Ace of Spades
It's your turn, Vinod:
Hand 1: 12
Five of Hearts
Seven of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): D
Oops! Your wager is too high to double down.
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Queen of Spades to Hand 1 for a total value of 22
Bust! Your Hand 1 value is above 21! You lose $300
It's your turn, Eric:
Hand 1: 19
Nine of Clubs
Ten of Diamonds
What will you do with Hand 1?(P:H:S:D:V:Q): P
The dealer reveals his/her Face Down Card:
Hand: 20
Ace of Hearts
Four of Clubs
Round 5 Over! Here's what happened:
Vinod loses $300 from busting Hand 1
Vinod has $0 remaining
Eric loses $120 from Hand 1
Eric has $0 remaining
Albert has $3125 remaining
Play again? (Y:N): Y
*********************** Round 6 ***********************
Please place your bets below:
Albert: $2000
All bets are final. Cards are now being dealt.
The dealer has a Blackjack!
Albert loses $2000.
Round 6 Over! Here's what happened:
Albert has $1125 remaining
Play again? (Y:N): Y
*********************** Round 7 ***********************
Please place your bets below:
Albert: $500
All bets are final. Cards are now being dealt.
It's your turn, Albert:
Hand 1: 14
Four of Diamonds
Jack of Hearts
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Five of Spades to Hand 1 for a total value of 19
What will you do with Hand 1?(P:H:S:D:V:Q): P
The dealer reveals his/her Face Down Card:
Hand: 13
Ace of Spades
Two of Diamonds
The dealer takes Nine of Hearts for a total value of 12
The dealer takes Queen of Clubs for a total value of 22
Bust! The dealer's hand value is above 21!
Round 7 Over! Here's what happened:
Albert wins $500 from Hand 1
Albert has $1625 remaining
Play again? (Y:N): Y
*********************** Round 8 ***********************
Please place your bets below:
Albert: $1625
All bets are final. Cards are now being dealt.
It's your turn, Albert:
Hand 1: 13
Three of Spades
Ten of Clubs
What will you do with Hand 1?(P:H:S:D:V:Q): H
You have added Four of Hearts to Hand 1 for a total value of 17
What will you do with Hand 1?(P:H:S:D:V:Q): P
The dealer reveals his/her Face Down Card:
Hand: 18
Seven of Hearts
Ace of Diamonds
Round 8 Over! Here's what happened:
Albert loses $1625 from Hand 1
Albert has $0 remaining
*********************** Game Over ***********************
Thanks for Playing!
Sat Dec 22 21:48:50 2018