Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 6 : 4 5 Backend Programmin... 1 - University of Applied Sciences Europe Backend programming Final Exam Project Backend Programming: Project War Card Game
:
Backend Programmin...
University of Applied Sciences Europe
Backend programming Final Exam Project
Backend Programming: Project
War Card Game
Object Oriented Solution With GUI
Points
Project Description:
The purpose of this project is to develop a Card Game program with a Graphical User Interface that the Player can play with the Computer or other player. The program will be written in Java and should have a userfriendly graphical user interface GUI to enhance usability, in addition to save and Capability, so the user can continue the game from where he finished.
Game Rules:
Introduction
War also known as Battle in the United Kingdom is a simple card game, typically played by two players using a standard playing card deck, and often played by children.
Prof. Dr Rand Kouatly, EU University Europe, Summer
Backend programming Final Exam Project
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, giving each a down stack. In unison, each player reveals the top card of their deck this is a "battle" and the player with the higher card takes both of the cards played and moves them to their stack. Aces are high, and suits are ignored.
If the two cards played are of equal value, then there is a "war". Both players place the next cards from their pile face down and then
uarr
:
Backend Programmin...
de
EU University Europe, Summer
Backend programming Final Exam Project
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, giving each a down stack. In unison, each player reveals the top card of their deck this is a "battle" and the player with the higher card takes both of the cards played and moves them to their stack. Aces are high, and suits are ignored.
If the two cards played are of equal value, then there is a "war". Both players place the next cards from their pile face down and then another card faceup The owner of the higher faceup card wins the war and adds all the cards on the table to the bottom of their deck. If the faceup cards are again equal then the battle repeats with another set of facedownup cards. This repeats until one player's faceup card is higher than their opponent's.
If a player runs out of cards during a war, that player immediately loses. In others, the player may play the last card in their deck as their faceup card for the remainder of the war or replay the game from 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 you need to create at least:
card class,
user class players name and id
save class save game progress
Prof. Dr Rand Kouatly, EU University Europe, Summer
Backend programming Final Exam Project
C In each class you have to:
:
Backend Programmin...
de
Final Exam Project
In eacn class you have to:
Constructors.
Getter and setters.
Print info.
Needed methods.
D You save the game progress.
The Solution condition
The solution must has the following conditions Not following the following conditions you will have penalties of each points:
Based on OOP, no static methods are allowed, except of Lambda Function if needed. points penalty
All variables must be private, point penalty
Uses inheritance, and abstract in the solution points penalty
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 card deck, Points penalty
Use an Array or list to save the user's information. points penalty
Using a Graphical User interface controlled by a mouse or Keyboard, Points penalties
Prof. Dr Rand Kouatly, EU University Europe, Summer
Backend programming Final Exam Project
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. points penalties
Code must have comments, Points penalties
Code must not be copied, or Al generated Points penalties
UTF character coding point penalty
Project muss show your names, in the about Menu Bar, point penalty
uarr
:
Backend Programmin...
Using a Graphical User interface controlled by a mouse or de 'board, Points penalties
Prof. Dr Rand Kouatly, EU University Europe, Summer
Backend programming Fin
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