Create a turn-based strategy

A “round” consists of the player striking the monster and the monster striking the player.

During the player’s turn, the user can choose one of five actions from a menu – “Normal Attack”, “Heavy Attack”, “Counter Attack” or “Use Amulet” or “Defend”:

1. Normal Attack = 80% hit chance and 10 hitpoints
2. Heavy Attack = 50% hit chance and 20 hitpoints
3. Counter Attack = 65% hit chance and 6 hitpoints
4. Use Amulet = increase damage by 1.5 to the original value and use only once. Does NOT use a turn to activate (i.e. you can activate an amulet and still be able to attack this turn)
5. Defend = Regain 5 hitpoints. cannot exceed starting health. Cannot attack this turn. Reduce enemy’s chance of hitting by 30%.

As im a beginner and still learning C++ can someone please help me with this task as im really confused! a little help would be much appreciated!
oh and we use <stdio.h> not <iostream>.
Last edited on
Imagine the game is to be enacted by you and a friend, what would the steps be that each of you need to take? write them down as psuedo code, there will be 5 sequences in all, one for each action the user can take.

this will give you the starting point. After that you should have an idea of what you want to do and in what order.

then translate to c++ with the help of this great website!

start off with the normal attack, write the detailed and complete sequence of events including changes to health, rolling dice for %chance etc then post back.



Topic archived. No new replies allowed.