Send ready to spectators
This commit is contained in:
1
app.py
1
app.py
@@ -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": (
|
||||||
|
|||||||
Reference in New Issue
Block a user