from ..interfaces import FightingEntity class Player(FightingEntity): maxhealth = 20 strength = 5 def move_up(self) -> None: self.check_move(self.y - 1, self.x, True) def move_down(self) -> None: self.check_move(self.y + 1, self.x, True) def move_left(self) -> None: self.check_move(self.y, self.x - 1, True) def move_right(self) -> None: self.check_move(self.y, self.x + 1, True)