Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Just two more attack points! solution in Creative category for The Warriors by ArchTauruS
"""Just two more attack points!
"""
class Warrior:
health = 50
attack = 5
@property
def is_alive(self):
return self.health > 0
class Knight(Warrior):
attack = 7
def fight(a, b):
while a.is_alive and b.is_alive:
b.health -= a.attack
if b.is_alive:
a.health -= b.attack
return a.is_alive
Nov. 12, 2018