Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 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

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

Understanding the Law

Authors: Donald L. Carper, John A. McKinsey

6th edition

538473592, 978-0538473590

More Books

Students also viewed these Programming questions