Question: I'm having trouble coding this in C++ Create a player and fight against computer Both player and computer have the following attribute I username health:

I'm having trouble coding this in C++

I'm having trouble coding this in C++ Create a player and fightagainst computer Both player and computer have the following attribute I username

Create a player and fight against computer Both player and computer have the following attribute I username health: 200 power: 100 Both player and computer can do the following jab Hook cross Uppercut guard Opponent's selection Health/Power jab cross Player's selection jab -10/-10 -10/-20 -10/-30 -10/-40 0/35 cross -20/-10 -20/-20 -20/-30 -20/-40 0/30 hook -30/-10 -30/-20 -30/-30 -30/-40 -5/25 uppercut -40/-10 -407-20 -40/-30 -40/-40 - 10/20 Guard 5/-10 5/-20 5/-30 5/-40 10/50 hook uppercut guard Above table presents health and power of user (and computer) at each situation In this game, max health is limited at 500, and max power is limited at 100 If power is below 0, it will get a penalty by skip 1 move and their power will increase by 25 in the next round If health is below 0, this game is over

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!