I really really need help.. I need it urgent. Thanks for help in advance
class func{
private:
string name;
int health;
int score;
public:
func();
void setName(string);
string getName();
int getHealth();
int getscore();
void roll();
void pass();
void data();
};
Input user name
Start game with user health=100 & points 0
Then ask user if he want to roll a dice or if he want to pass?
If he choose pass his health increase 10 points.
If he choose roll a dice then he randomly choose a number 1, 2, & 3 (random generator)
Lose - +5pts points -15pts Health
Tie - +10pts points - 10pts Health
Win - +15pts points - 5 pts Health
And then if again ask user if he want to roll a dice or if he want to pass?
This is not a homework site. We won't do your homework for you. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again. As it is impossible to find derivative of function without knowledge in arithmetic, you cannot do more complex tasks in programming without clear understanding of basics