- import time
- import random
- hero_health = 100
- hero_defense = 5
- sword_damage = 10
- health_after_attack = hero_health - sword_damage-hero_defense
- name=input('Welcome to Arda, Please state your name. ')
- time.sleep(3)
- print(f'Welcome {name}, grab your weapon and defend yourself.')
- print(f'The guard grabs the sword off his belt and goes for a lunge. You take {sword_damage-hero_defense}. You have {health_after_attack}')