Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write in Java: A. Euchre class Update main() method to do the following: 1. Call

ID: 3895636 • Letter: W

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!”

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 “Let’s 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

Explanation / Answer

You need to fill the blank parts in between as per the code in Game class, Player class etc. As you have not provided those files, i am unable to fill those methods. Please let me know in comments if you need more help. Thanks!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote