Collaborative session implementation, 1

This commit is contained in:
2026-02-15 16:41:48 -08:00
commit 2f3c14a9b2
25 changed files with 2824 additions and 0 deletions

12
synctoy/state_machine.py Normal file
View File

@@ -0,0 +1,12 @@
from typing import Protocol
class StateMachine(Protocol):
def equivalent_to(self, other: "StateMachine") -> bool:
raise NotImplementedError
def can_transition_from(self, old: "StateMachine") -> bool:
raise NotImplementedError
def can_transition_to(self, new: "StateMachine") -> bool:
raise NotImplementedError