Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- print("Welcome to the Slime Killer!!!")
- print("You should kill slimes. That's it.")
- name = input("What is your name?\n")
- print("Hello %s!!!" % name)
- attack = 1
- health = 10
- gold = 0
- while health > 0:
- print("You have %d health and %d attack" % (health, attack))
- print("You saw a Slime sliming outside...KILL IT")
- slimeAttack = randint(1, 3)
- slimeHealth = randint(1, 2)
- print("Slime has %d attack and %d health." % (slimeAttack, slimeHealth))
- health -= slimeHealth / attack * slimeAttack - slimeAttack
- print("You kill this silly slime and get out with %d health." % health)
- gold += 1
- print("You got 1 gold from this slime!\nYou have %d gold now" % gold)
- print("You can heal or buy a new sword.\nWhat you gonna do?")
- choice = str(input("Heal, sword or nothing? Please, type with lower cases!\n"))
- if choice == health:
- gold -= 1
- health += 5
- elif choice == attack:
- gold -= 1
- attack += 1
- else:
- continue
- print("GG WP")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement