Answered step by step
Verified Expert Solution
Link Copied!

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

16:45
Backend Programmin...
1- University of Applied Sciences Europe
Backend programming Final Exam Project
Backend Programming: Project
War Card Game
Object Oriented Solution - With GUI
50 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 2024
17
Backend programming Final Exam Project
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, 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 2 cards from their pile face down and then
uarr
16:45
Backend Programmin...
2 de 7
EU University Europe, Summer 2024
17
Backend programming Final Exam Project
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, 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 2 cards from their pile face down and then another card face-up. The owner of the higher face-up card wins the war and adds all the cards on the table to the bottom of their deck. If the face-up cards are again equal then the battle repeats with another set of face-down/up cards. This repeats until one player's face-up 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 face-up 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 2 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 2024
27
Backend programming Final Exam Project
C. In each class you have to:
16:45
Backend Programmin...
3 de 7
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):
1- Based on OOP, no static methods are allowed, except of Lambda Function if needed. (20 points penalty)
2- All variables must be private, (4 point penalty)
3- Uses inheritance, and abstract in the solution (4 points penalty).
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 card deck, (4 Points penalty).
7- Use an Array or list to save the user's information. (2 points penalty).
8- Using a Graphical User interface controlled by a mouse or Keyboard, (20 Points penalties),
Prof. Dr. Rand Kouatly, EU University Europe, Summer 2024
37
Backend programming Final Exam Project
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 Al generated (50 Points penalties).
12-UTF 8 character coding (1 point penalty).
13-Project muss show your names, in the about Menu Bar, (2point penalty).
uarr
16:46
Backend Programmin...
8- Using a Graphical User interface controlled by a mouse or !4 de 7 'board, (20 Points penalties),
Prof. Dr. Rand Kouatly, EU University Europe, Summer 2024
37
Backend programming Fin
image text in transcribed

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

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

6 0 6 . ' '

Answered: 1 week ago