Question
In C language: Implement a small role playing game, in which the game characters fight against each other. For each character on should define at
Implement a small role playing game, in which the game characters fight against each other. For each character on should define at least
Namethat identifies the character.
Hit points(HP) that defines the health of the character. HP is reduced when the character gets damage in the fight. The character will die when HP reduces to zero.
Experience points(Exp) that increases when the character hits its opponents in the fight. You can decide how the experience points increase (for example, by the amount of inflicted damage, with bonus on slaying, etc,). The experience points always start from zero on a new character.
Weapon(i.e., a string with the weapoin name), and itsmaximum damage. In the simpliest form the weapon can always inflict the same amount of damage, but you can define also so that a hit causes a random amount of damage.
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