You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
220 B
Python

# coding: utf-8
# license: GPLv3
class Attacker:
_health = None
_attack = None
def attack(self, target):
target._health -= self._attack
def is_alive(self):
return self._health > 0