Question: Write a Java program that simulates a blackjack game. You need to use Enumerated types for the card values and suits You will likely need
Write a Java program that simulates a blackjack game.
You need to use Enumerated types for the card values and suits
You will likely need to use array or ArrayLists for a deck of cards; just try doing this without.
You need the following classes: Card, Deck, Game, TestBlackjack
o It is up to you how you design the game within this framework
o Think about what class should hold what data and services.
o The main class should only instantiate a game and hold no vital data, the UI should be
elsewhere
You need to have a method that will shuffle the deck of cards! Think back to FisherYates!
Game needs to be interactive.
The game needs to be an accurate simulation of a hand of blackjack. You have a deck of cards
with cards. When a card is dealt from the deck, it will not appear again. Cards are dealt from
the top of the deck after the deck is shuffled. Ace can be high or low depending on the players
hand. There will be one player and a dealer. You must evaluate the players hand against the
dealers hand.
The game must work properly.
Add an extra challenge:
Let players choose when they want to leave the game
Comment each part of the code so I know what each part is doing!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
