Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_the_warriors solution in Uncategorized category for The Warriors by Jon_Red
class Warrior():
a,h=5,50
@property
def is_alive(self):return self.h>0
class Knight(Warrior):a=7
def fight(u1,u2):
while u1.is_alive and u2.is_alive:
u2.h-=u1.a*u1.is_alive
u1.h-=u2.a*u2.is_alive
return u1.h>u2.h
April 21, 2020
Comments: