write a c++ program to Create a game where a player and an enemy battle each oth
ID: 3645117 • Letter: W
Question
write a c++ program to Create a game where a player and an enemy battle each other. Each has a certain amount ofhealth, which decreases when they are attacked. The battle ends when either the player or the
enemy runs out of health.
Each round, the player gets a chance to attack the enemy. The player (the user) can choose to
attack normally, or use a magic spell. Casting a spell costs 1 magic point, and the player only has
3 to begin with. However, magic spells hit for more damage. Check that the player has sufficient
MP to use the spell if it is chosen. After the player