question archive You will need everything required for your code to run (including header, libraries, using namespace std, etc

You will need everything required for your code to run (including header, libraries, using namespace std, etc

Subject:Computer SciencePrice: Bought3

You will need everything required for your code to run (including header, libraries, using namespace std, etc.)

Make a game where the user is a hero fighting a monster. The monster starts with 30 hit points. The user can choose to attack or run. If they attack, the monster loses 5 hit points and the program asks if they would like to attack or run. If they run, tell the user they have escaped. If the monster reaches 0 or fewer hit points, tell the user the monster has been vanquished and they have won. After the user escapes or the monster is vanquished, ask if you user would like to play again and repeat the game accordingly.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE