#!/usr/bin/env python3 from abc import abstractmethod from pygame import Surface from pygame.event import Event class IBoard: @abstractmethod def draw(self, screen: Surface, force_redraw: bool): raise NotImplementedError() @abstractmethod def handle_event(self, event: Event): raise NotImplementedError()