Question
CREATE a JAVA GUI program Player vs player games are traditionally played using dice. Each player has a certain number of points at the start
CREATE a JAVA GUI program
Player vs player games are traditionally played using dice. Each player has a certain number of points at the start and the loser decided by who loses all of their health points first. Both players roll (one as attacker the other defender) each turn. Loss of points occurs when the attacker rolls higher than the defender. In the case of a tie or the defender rolling higher, then no points are lost. Attributes of the character such as strength and objects they have such as weapons may modify the respective attack and defense of the players. The theme you select for your game is up to you and may include fantasy, science fiction, cops vs robbers or anything.
Specification:
The game will allow the user to outfit at least one character with gear and allow two characters to engage in combat. It will provide a simple play by play of the action (e.g.Knight hits dragon for 10 points) and report the winner of the match.
The game should have examples of both inheritance and aggregation
It should contain several different classes (excluding GUI classes and driver).
This is to be a text-based game in that all combat is text rather than game characters moving around a board.
Not to use a System based user interface (i.e. Scanner,System.print or JOptionPanes
GUI will be used to select combatants, equip characters, and for the text to be written to.
It is strongly recommended that you use a card layout for this program
Provide SAAD Diagram also
Thank you
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