# Lucas's Choose Your Own Adventure 2
import random
health = (10)
damage = random.randint(5, 10)
print('You are a kid and you are 8 years old.')
print(f'You have {health} health points')
print(f'you do {damage} damage points')
print(f'its your birthday you got bat for your birthday')
print(f'add 10 to your damage points')
damage = damage + 10
print(f'you do {damage} damage ')
print('A boy gets jealous of you and attacks you')
boy_health =31
boy_damage = random.randint(1, 8)
print(f'The boy attacks, he has {boy_health} health points.')
print(f'The boy does {boy_damage} damage.')
health = health - boy_damage
print(f'You now have {health} health points.')
if health < 1:
print('You are now dead x 100''')
else:
print(f'You attack the boy back')
boy_health = boy_health - damage
if boy_health > 0:
print(f'The boy is still alive, he has {boy_health} health.')
print(f'You attack the boy again')
boy_health = boy_health - damage
print(f'He has {boy_health} health left.')
if boy_health < 1:
print(f'He finally gives up and apologises.then a huge explosion happens out side')
else:
moonlord_damage = random.randint(100, 500)
moonlord_health = 500
health = health - moonlord_damage
print(f'You have been unable to defeat the boy.\n The Moonlord turns up and does {moonlord_damage} damage.\n You have {health} health. You are dead.')
print('Your ghost attacks the Moonlord')
ghost_damage = random.randint(100, 500)
moonlord_health = moonlord_health - ghost_damage
print(f'The moonlord has {moonlord_health} health left.')
if moonlord_health < 100:
print('The moonlord explodes. The end.')
else:
print(f'The moonlord attacks for {moonlord_damage} damage, you are dead again. The end')
elif boy_health < 1:
print(f'You beat the boy with one shot! The boy gives up and surrenders. He now has {boy_health} health and apologises and dies.')