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
Get step-by-step solutions from verified subject matter experts
