Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Project Description:The purpose of this project is to develop a Card Game program with aGraphical User Interface that the Player can play with the Computer
Project Description:The purpose of this project is to develop a Card Game program with aGraphical User Interface that the Player can play with the Computer orother player. The program will be written in Java and should have a userfriendly graphical user interface GUI to enhance usability, in addition tosave and Capability, so the user can continue the game from where hefinished.Game Rules: IntroductionWar also known as Battle in the United Kingdom is a simple card game,typically played by two players using a standard playing card deck, andoften played by children How to Play The objective of the game is to win all of the cards. The deck is divided evenly and randomly among the players, givingeach a down stack. In unison, each player reveals the top card oftheir deck this is a "battle" and the player with the higher card takesboth of the cards played and moves them to their stack. Aces arehigh, and suits are ignored. If the two cards played are of equal value, then there is a "war". Bothplayers place the next cards from their pile face down and thenanother card faceup The owner of the higher faceup card wins thewar and adds all the cards on the table to the bottom of their deck. Ifthe faceup cards are again equal then the battle repeats with anotherset of facedownup cards. This repeats until one player's faceupcard is higher than their opponent's. If a player runs out of cards during a war, that player immediatelyloses. In others, the player may play the last card in their deck astheir faceup card for the remainder of the war or replay the gamefrom the beginning. The game will continue until one player has collected all of the cards Solution Steps:Please follow the following steps during the solution:A Create Packages, You need at least main packages,B You are free to use your solution, the solution must be OOP, and youneed to create at least: card class, user class players name and id save class save game progressC In each class you have to: Constructors. Getter and setters. Print info. Needed methods.D You save the game progress The Solution conditionThe solution must has the following conditions Not following the followingconditions you will have penalties of each points: Based on OOP, no static methods are allowed, except ofLambda Function if needed. points penalty All variables must be private, point penalty Uses inheritance, and abstract in the solution pointspenalty Uses Array or list to save the data points penalty Uses file saving to save the game progress, points penalty Uses the random number to shuffle and distribute the carddeck, Points penalty Use an Array or list to save the user's information. pointspenalty Using a Graphical User interface controlled by a mouse orKeyboard, Points penalties The GUI muss had a menu bar which had at least the followingNew for the new Game, Save for saving the Game, Opento open the saved game. points penalties Code must have comments, Points penalties Code must not be copied, or AI generated Pointspenalties UTF character coding point penalty Project muss show your names, in the about Menu Bar, point penalty All used images muss be included in the Images folder, in yourProject You can add sound effects if you would like to game You can download card images from the Internet or createyour design There is no predefined design of how the game will be at theend, the winning group game will be given extra points,Example how may the game look like:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started