Finishes DiceInterface Refactoring and Continues Tests Implementation

This commit is contained in:
2023-04-24 12:15:51 -03:00
parent b869ee74fb
commit 9202331852
19 changed files with 629 additions and 190 deletions

View File

@@ -0,0 +1,26 @@
from diceplayer.shared.utils.dataclass_protocol import Dataclass
from abc import ABC, abstractmethod
class Interface(ABC):
__slots__ = [
'config'
]
@abstractmethod
def __init__(self, data: dict):
pass
@staticmethod
@abstractmethod
def set_config(data: dict) -> Dataclass:
pass
@abstractmethod
def start(self, cycle: int):
pass
@abstractmethod
def reset(self):
pass