This commit is contained in:
simoncreates
2026-03-03 20:09:49 +01:00
11 changed files with 854 additions and 21 deletions
+1
View File
@@ -285,6 +285,7 @@ def on_disconnect():
room.p2_name = None
room.ready.pop(sid, None)
room.color_by_sid.pop(sid, None)
# initialize a new chessboard???
room.board = chess.Board()
room.ready[room.p1_sid] = False
room.game_active = False
+1
View File
@@ -51,6 +51,7 @@ class RequestDraw(TypedDict): # Client
class GameEnd(TypedDict): # Server
result: Literal["win", "loss", "draw"]
reason: str
game_id: NotRequired[int]
#todo: implement later