game: multiplayer: work

This commit is contained in:
2024-05-15 13:41:24 +02:00
parent efd8d53f6c
commit 400a91df3e
8 changed files with 31 additions and 23 deletions

View File

@ -28,6 +28,9 @@ class Segment:
def copy(self):
return Segment(self.start.copy(), self.stop.copy())
def center(self):
return Point((self.start.x + self.stop.x) / 2, (self.start.y + self.stop.y) / 2)
def to_dict(self) -> dict:
data: dict[str: dict] = {