Answered step by step
Verified Expert Solution
Link Copied!

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 user-friendly graphical user interface (GUI) to enhance usability, in addition tosave and Capability, so the user can continue the game from where hefinished.Game Rules:1. 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.2. 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 2 cards from their pile face down and thenanother card face-up. The owner of the higher face-up card wins thewar and adds all the cards on the table to the bottom of their deck. Ifthe face-up cards are again equal then the battle repeats with anotherset of face-down/up cards. This repeats until one player's face-upcard 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 face-up 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.3. Solution Steps:Please follow the following steps during the solution:A. Create Packages, You need at least 2 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 progress),..C. In each class you have to: Constructors. Getter and setters. Print info. Needed methods.D. You save the game progress.4. The Solution conditionThe solution must has the following conditions (Not following the followingconditions you will have penalties of each points):1- Based on OOP, no static methods are allowed, except ofLambda Function if needed. (20 points penalty)2- All variables must be private, (4 point penalty)3- Uses inheritance, and abstract in the solution (4 pointspenalty).4- Uses Array or list to save the data (4 points penalty).5- Uses file saving to save the game progress, (4 points penalty).6- Uses the random number to shuffle and distribute the carddeck, (4 Points penalty).7- Use an Array or list to save the user's information. (2 pointspenalty).8- Using a Graphical User interface controlled by a mouse orKeyboard, (20 Points penalties),9- The GUI muss had a menu bar which had at least the following(New) for the new Game, (Save) for saving the Game, (Open)to open the saved game. (5 points penalties)10- Code must have comments, (2 Points penalties),11- Code must not be copied, or AI generated (50 Pointspenalties).12- UTF 8 character coding (1 point penalty).13- Project muss show your names, in the about Menu Bar, (2-point penalty).14- All used images muss be included in the Images folder, in yourProject.15- You can add sound effects if you would like to game.16- You can download card images from the Internet or createyour design.17- There is no pre-defined design of how the game will be at theend, the winning group game will be given 10 extra points,Example how may the game look like:

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

Understand corporate and HRM strategy.

Answered: 1 week ago