Send ready to spectators

This commit is contained in:
0880
2026-01-18 19:12:59 +03:30
parent 83b570214a
commit 250ef92502

1
app.py
View File

@@ -245,6 +245,7 @@ async def join(request, room_id):
"code": "FULL", "code": "FULL",
"error": "Room Full", "error": "Room Full",
"board": room.board.serialize(), "board": room.board.serialize(),
"ready": len(room.players) == 2,
"turn": room.turn.value, "turn": room.turn.value,
"state": room.state.value, "state": room.state.value,
"start_time": ( "start_time": (