Skip to main content
Source Link
200_success
  • 145.6k
  • 22
  • 191
  • 481

This is an example run that shows that the rules of the game are not being followed. If I started with 5♣︎ and 5♥, then receive an Ace, then I've achieved 21. I should have won.

Also note that "bust or stay" is not the right terminology. Nobody wants to bust. It should ask whether I want to "hit or stay".

$ java BlackJackGame
What nickName would you like to have?
200_success
Would you like to start a new game?  'Yes/No' :
Yes
200_successs current hand.
FIVE of CLUBS
FIVE of HEARTS
 
Dealers current hand.
[Hidden card]
TEN of HEARTS
Would 200_success like to bust or stay? 'Bust/Stay'
Bust
11
Would 200_success like to bust or stay? 'Bust/Stay'
Stay
You have chosen to stay. Your hand: 11

- Dealers turn -
Dealer has chosen to stay!
Both players has decided to stay. The winner is Dealer with a total of 20.
Post Made Community Wiki by 200_success