Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a blackjack game in the java language! Including Deck, Card, Player, CardGame, TestMenu, and Main classes separately Project Description: Your task is to create

Write a blackjack game in the java language! Including Deck, Card, Player, CardGame, TestMenu, and Main classes separately
Project 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.
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

What do you believe was the cause of the turnover problem?

Answered: 1 week ago