module 7 ex 0 to 2

This commit is contained in:
2026-03-02 15:49:13 +01:00
parent 2cb7f24a8e
commit 164445bb42
12 changed files with 189 additions and 10 deletions

12
07/ex2/Combatable.py Normal file
View File

@@ -0,0 +1,12 @@
from abc import ABC, abstractmethod
class Combatable(ABC):
@abstractmethod
def attack(self, target: str) -> dict: ...
@abstractmethod
def defend(self, incoming_damage: int) -> dict: ...
@abstractmethod
def get_combate_stats(self) -> dict: ...