Not logged in. Login

A3 Sample Runs

Since sample runs of this program tend to be quite long, these examples have been moved to another page.

Sample Turns

This is the first round of the game. Notice that Player 1 has an initial total of 16, with the ace counting for 11 points. When they pick up another ace, a total of 27 would be a bust; it counts for 1 point, for a total of 17 points.

When Player 1 draws a eight, their total would be 25. Since there is still another ace counting 11 points (they have a “soft hand”), that ace can count for 1 and their total becomes 15. Player 1 decides they have pushed their luck far enough and stands.

Player 2 makes some input errors, but eventually hits on 16 to get a total of 20. After another typo, they stand.

The dealer ends up with 19 points, so player 1 loses their $100 bet. Player 2 wins their. A this point, they should have $900 and $1100, respectively.

How many players are there? 2

Player #1:
You have $1000.
How much do you want to bet? 100
Player #2:
You have $1000.
How much do you want to bet? 100

Hands:
  Dealer:    ** 7C
  Player #1: AH 5S
  Player #2: 6D QD

Player #1
Cards: AH 5S, total: 16
Hit (h) or stand (s)? h
Cards: AH 5S AC, total: 17
Hit (h) or stand (s)? h
Cards: AH 5S AC 8S, total: 15
Hit (h) or stand (s)? s

Player #2
Cards: 6D QD, total: 16
Hit (h) or stand (s)? A
Please enter "h" or "s".
Cards: 6D QD, total: 16
Hit (h) or stand (s)? HIT
Please enter "h" or "s".
Cards: 6D QD, total: 16
Hit (h) or stand (s)? H
Cards: 6D QD 4D, total: 20
Hit (h) or stand (s)? stand
Please enter "h" or "s".
Cards: 6D QD 4D, total: 20
Hit (h) or stand (s)? S

Dealer draws 2D.
Dealer draws 3S.
Dealer draws 4H.
Dealer's hand: 3C 7C 2D 3S 4H, total: 19
Player #1 loses $100.
Player #2 wins $100.
Press enter to continue.

In this example, Player 3 has some initial betting problems.

Once that's done, Player 1 gets very lucky with a soft hand and makes 21 before standing. Player 2 wisely stands with the initial 20. Player 3 busts with 22 points.

When the dealer gets 20 as well, it means that we have all three possible outcomes of the hand: Player 1 wins, Player 2 pushes, Player 3 loses. Their totals should now be $1200, $1000, and $700.

How many players are there? 3

Player #1:
You have $1000.
How much do you want to bet? 200
Player #2:
You have $1000.
How much do you want to bet? 100
Player #3:
You have $1000.
How much do you want to bet? 0
You have $1000.
How much do you want to bet? 1234
You have $1000.
How much do you want to bet? -123
You have $1000.
How much do you want to bet? 300

Hands:
  Dealer:    ** 6H
  Player #1: AD AS
  Player #2: QC TC
  Player #3: 5D JD

Player #1
Cards: AD AS, total: 12
Hit (h) or stand (s)? h
Cards: AD AS 6S, total: 18
Hit (h) or stand (s)? h
Cards: AD AS 6S 3S, total: 21
Hit (h) or stand (s)? s

Player #2
Cards: QC TC, total: 20
Hit (h) or stand (s)? s

Player #3
Cards: 5D JD, total: 15
Hit (h) or stand (s)? h
Cards: 5D JD 7H, total: 22
Bust!

Dealer draws 6C.
Dealer's hand: 8S 6H 6C, total: 20
Player #1 wins $200.
Player #2 pushes.
Player #3 loses $200.
Press enter to continue.

Full Game

This is a full game with 3 rounds.

How many players are there? 3

Player #1:
You have $1000.
How much do you want to bet? 100
Player #2:
You have $1000.
How much do you want to bet? 200
Player #3:
You have $1000.
How much do you want to bet? 300

Hands:
  Dealer:    ** 3D
  Player #1: 7C 5D
  Player #2: 6D 5S
  Player #3: 2S KD

Player #1
Cards: 7C 5D, total: 12
Hit (h) or stand (s)? h
Cards: 7C 5D KS, total: 22
Bust!

Player #2
Cards: 6D 5S, total: 11
Hit (h) or stand (s)? h
Cards: 6D 5S QS, total: 21
Hit (h) or stand (s)? s

Player #3
Cards: 2S KD, total: 12
Hit (h) or stand (s)? h
Cards: 2S KD 4H, total: 16
Hit (h) or stand (s)? s

Dealer draws 8C.
Dealer draws 9D.
Dealer's hand: AS 3D 8C 9D, total: 21
Player #1 loses $100.
Player #2 pushes.
Player #3 loses $300.
Press enter to continue.

Player #1:
You have $900.
How much do you want to bet? 100
Player #2:
You have $1000.
How much do you want to bet? 200
Player #3:
You have $700.
How much do you want to bet? 300

Hands:
  Dealer:    ** KC
  Player #1: 7S JC
  Player #2: TH 6C
  Player #3: 7H TC

Player #1
Cards: 7S JC, total: 17
Hit (h) or stand (s)? s

Player #2
Cards: TH 6C, total: 16
Hit (h) or stand (s)? h
Cards: TH 6C 3S, total: 19
Hit (h) or stand (s)? s

Player #3
Cards: 7H TC, total: 17
Hit (h) or stand (s)? h
Cards: 7H TC JD, total: 27
Bust!

Dealer's hand: QH KC, total: 20
Player #1 loses $100.
Player #2 loses $200.
Player #3 loses $300.
Press enter to continue.

Player #1:
You have $800.
How much do you want to bet? 200
Player #2:
You have $800.
How much do you want to bet? 400
Player #3:
You have $400.
How much do you want to bet? 600
You have $400.
How much do you want to bet? 399

Hands:
  Dealer:    ** TS
  Player #1: 8H JH
  Player #2: 6H 4D
  Player #3: 9C 4C

Player #1
Cards: 8H JH, total: 18
Hit (h) or stand (s)? s

Player #2
Cards: 6H 4D, total: 10
Hit (h) or stand (s)? h
Cards: 6H 4D 3H, total: 13
Hit (h) or stand (s)? h
Cards: 6H 4D 3H 9S, total: 22
Bust!

Player #3
Cards: 9C 4C, total: 13
Hit (h) or stand (s)? h
Cards: 9C 4C 7D, total: 20
Hit (h) or stand (s)? s

Dealer draws KH.
Dealer's hand: 2H TS KH, total: 22
Player #1 wins $200.
Player #2 loses $400.
Player #3 wins $399.
Press enter to continue.

Player #1: $1000
Player #2: $400
Player #3: $799
Updated Thu June 27 2024, 10:36 by ggbaker.