Question in the description
I am making a simple text only turn based rpg game by using python3 and I have used random choice() function to make the computer radomly attack on the player through a list of opponent attack I have used if else statement to reduce the health of player and oponent according to the attack choosen by player and computer but after the first attacks of both computer and player that is after the first turns of both , when the player will again attack (there is a list to choose for attacks for player too) how will i make the opponents health to reduce from the health left from the last attack for example if the first attack got 30 percent damage to opponent then on the second attack how would i make the health reduce from 70 percent rather than 100 same to do for players health