Question: Write in Java: A. Euchre class Update main() method to do the following: 1. Call static method System.out.println() output to the console Welcome to Euchre!
Write in Java:
A. Euchre class
Update main() method to do the following:
1. Call static method System.out.println() output to the console Welcome to Euchre!
2. Call static method JOptionPane.showMessageDialog() using the method signature that receives two arguments; the first argument should be null, the second argument should be explicit text Lets Play Euchre!
3. Instantiate an instance of class Game calling the no-argument constructor
B. Constants class:
1. A constant for the number of AI players set to the value of 3
2. A constant for the number of cards in a Euchre deck set to the value of 24
3. A constant for the number of cards each player is dealt set to the value of 5
4. A constant for the number of rounds in a hand set to the value of 5
5. An enumeration for the color of cards so it includes: RED and BLACK
6. An enumeration for the suit of cards so it includes: CLUBS, DIAMONDS, HEARTS, SPADES
7. An enumeration for the face value of cards so it includes: NINE, TEN, JACK, QUEEN, KING, ACE
C. AiPlayer class
Extend class Player.java
Implement methods inherited from class Player:
1. public Card playCard();
2. public void makeTrump();
D. Card class
1. Add member variables (Hint: you will have to explicitly import
each enumeration, example: import constants.Constants.Color; ):
a. Data type enumeration Face to represent the face value of the card
b. Data type enumeration Suit to represent the suit of the card
c. Data type enumeration Color to represent the color of the card
2. Generate getters/setters for member variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
