Question: Using Java: Create a project that will simulate the game of BlackJack . We will be using the simple game rules. Allow the user to
Using Java:
Create a project that will simulate the game of BlackJack. We will be using the simple game rules. Allow the user to play multplie hands, and also keep track of the number of wins the player and dealer has.
Create class called Card. The card class MUST have these requirements:
- 3 Fields: Value, Suit, and Face
- DO not create a no-args Constructor
- A toString() method
- A compareTo() method for determing the order of cards from High to Low (A,K,Q,J, 10,9,8,7,6,5,4,3,2)
Create a class called Deck. The deck class must have these requirements:
- two fields: array of Cards and an Int which holds the subscript of the Card at the top of the Deck
- It should only have one constructor, which will create the array. Write it withut writing 100 statements.
- a getTopCard() method which returns a copy of the Card at the top of the array.
- a shuffle() method which shuffles the array of cards.
Create a driver class named Game21. It must have these requirements:
- Where the game will be played
- Allow user to quit if needed
- Track scores
- Basic rules of blackjack
Code must be documentated.
Must follow these strict requirements.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
