Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Design a program written in JAVA to simulate the game BlackJack Rules: Use 52-card decks. Aces is counted as 1, 2 to 9 according to

Design a program written in JAVA to simulate the game BlackJack

Rules:

Use 52-card decks.

Aces is counted as 1, 2 to 9 according to pip value, and tens and face cards count as ten points.

The value of a hand is the sum of the point values of the individual cards. Except, a "blackjack" is the highest hand, consisting of an ace and any 10-point card, and it outranks all other 21-point hands.

The dealer will give two cards to the player and two cards to himself.

Deal a card to the player until the player says "no"

Deal a card to dealer as long as the total points is less than 17

If the dealer goes over 21 points, then any player who didn't already bust will win.

If the dealer does not bust, then the higher point total between the player and dealer will win.

Repeat the game until the player doesn't want to play. Use a new deck for each round.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

15.1 Define employee relations and employee engagement.

Answered: 1 week ago