import random import time name=input("What is you name player : ") #Playes hp Goblin_hp=80 player_hp=50 #Damage gob_scimitar=0 player_sword=0 #deflect deflect=0 #choice player_choice=" " print("hello",name,"by the looks of it you team has left you ") time.sleep(2) print("The monster is coming for you") time.sleep(2) print("are you going to kill him or is he going to kill you") time.sleep(2) print("here comes the monster, goblin") time.sleep(2) while Goblin_hp>0: print("Your health") print("you have {} HP".format(player_hp)) print("goblin has {} hp".format(Goblin_hp)) time.sleep(2) print("(a)ttack") print("or you can") print("(d)efend") player_choice = input ("your pick :") if player_choice == "a": gob_scimitar = random.randint (1-18)