Question: This is a 2 - player game. Initially, five cards were drawn at random from a deck of cards and delivered to the players. Also,
This is a player game. Initially, five cards were drawn at random from a deck of cards and delivered to the players. Also, three cards will be placed on the desk.
One player's cards are face up while the other player's cards are back up
PlayerbeginsandswitchesoutpartofhiscardsinthefirstroundTheotherplayercanviewhishandbutPlayerisunabletoseePlayerscard Playerthenmodifiesafewofhiscards Lastly,thedeskcardfaceswillbedisplayed and the winner of this round will be determined. In the next round, player begins the game.
On the right side of the game panel, the active player's hand point is shown. The player with his cards face up can redraw to of his cards from the deck by checking the box next to the cards and pressing the redrawn button. The new Hand's point will be displayed if the player switches some cards. The player performs this action just once. Then it is the opposing player's turn to select some of his or her cards to redrew. After that, it's the turn of the other players to choose which cards to redraw. The winner of this set of games will be decided once the second player has finished and the three cards on the desk reveal their faces. The point of each player's hand is then calculated once more, taking into account both the player's five cards and the three cards on the desk. Until one of the players wins three sets, the game will continue. The players' turns should be switched in the following round.
How do we compute a player's hand? Each player's five cards and the three cards on the desk will be considered. Each card has a value: Ace King Queen Jack and the others have the same value as their numbers. The point of a player is the summation of all of his cards' values and the cards on the desk with the following additional points:
If there is a Pair of cards, their points will be doubled
If a "Three of a Kind" exists, their points will be tripled.
if there is "Four of a Kind", their points will be multiplied by For example, the point of following cardsJKJis
If there is a Straight of cards or more, Their points will be multiplied by For Example,the point of following cards is
If there are Cards or more with the same suit,Their points will be multiplied by
I want this to be a Java project and be in a GUI as shown in the photo I provided
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
