**Hi guys, I am struggling with Day 28 in creating a battle ground with two players.
The area I am struggling at is where we have to take the difference between the two players+1 and then minus it from the losing character’s health.
I cannot seem to get my head wrapped around it , no matter how much I try.
I would really appreciate if someone can help me out with this code.
code snippet ```import random import os,time def rollDice(sides): result=random.randint(1,sides) return result #player1 and player 2 health stat def healthstat(): roll6sided=rollDice(6) roll8sided=rollDice(8) health=roll6sided*roll8sided/2+10 return health # player 1 and player 2 strength stat def strengthstat(): roll6sided=rollDice(6) roll8sided=rollDice(8) strength=roll6sided*roll8sided/2+12 return strength #character1 print("Character generator") c1=input("Name your legend: ") type=input("Choose your type: Human, Elf, Wizard or Orc: ") print(c1,"the",type) c1health=str(healthstat()) c1strength=str(strengthstat()) print("Health: ", c1health) print("Strength: ", c1strength) print("") print("Who are you battling?") #character2 c2=input("Name your legend: ") type2=input("Choose your type: Human, Elf, Wizard or Orc: ") print(c2,"the",type2) c2health=str(healthstat()) c2strength=str(strengthstat()) print("Health: ", c2health) print("Strength: ", c2strength) print("") round=0 while True: os.system("clear") time.sleep(1) print("Battle time") difference=c1strength-c2strength winner=c2health-difference if c1strength>c2strength: c2health-=difference if round==1: print(c1, "wins the first blow") else: print(c1, "wins round", round)