Question: Please write in java language! Thank you! Project Background Description: Your task is to create a simple card game using Java and data structures. The

Please write in java language! Thank you!
Project Background Description:
Your task is to create a simple card game using Java and data structures. The game should be turn-based, meaning each player takes a turn to play their cards. The game should have a deck of cards that are shuffled at the start of each game. Each player should be dealt a hand of cards from the deck.
The game should be able to handle at least 2 players, and each player should be able to see their own hand of cards. Each card should have a suit and a value (for example, "Ace of Spades" or "6 of Hearts").
The game should have a set of rules that determine which card wins each round. For example, if two players play a card of the same suit, the player with the highest value wins the round. If two players play a card of different suits, the player who played the card of the suit that was led wins the round.
You will need to use data structures to keep track of the deck of cards, the hands of each player, and the cards that have been played in each round. You may use any data structure you like (for example, arrays, ArrayLists, or LinkedLists).
Your program should include the following features:
A menu that allows the user to start a new game, view the rules of the game, test calls, or exit the program.
A way to shuffle the deck of cards and deal the cards to each player.
A way for each player to select a card from their hand and play it.
A way to determine which card wins each round.
A way to keep track of the score for each player.
A way to end the game and declare a winner.
Extra Credit:
Add a feature that allows the user to save the game and continue playing later.
Add a feature that allows the user to play against the computer.
Add a feature that allows the user to play a different card game using the same data structures.
Main Card Game Project Requirements:
Title Screen
Title Menu:
Run Game
Rules How game is played. This should display a string output explaining the game.
Run Test Mode
Object Oriented Design pieces:
Building Card Objects
Building a Deck of Card Objects
Shuffling Card Objects in Deck
Creating Player Objects
Moving cards from Deck to Player
Validating Card values
Functional Design pieces:
Test Engine Used to test pieces of functionality separately
Should allow for test cases to validate functions are working as expected
Game Engine
Pregame functions betting, dealing out cards, number of players. Essentially any thing that needs to happen before game starts.
Game workflow setting which players turn it is, giving player turn choices. If Computer Player exist then logic must be in place to handle Computer players choices.
Game Over conditions What happens at end of game
Design Documentation
Overview of what program does.
Specification of each Object (Card, Deck, Player)
Description and workflow for game engine.
Code Standards:
Code is Readable
Variable Names are meaningful
Code Tabs Lineup properly
Comments are handled appropriately

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!