Skip to content

Commit

Permalink
add status end game
Browse files Browse the repository at this point in the history
  • Loading branch information
tu-hm committed Dec 30, 2023
1 parent fcaeb05 commit 5c15feb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ async def puzzle_duel(sid, msg):
response = {
"status": "end",
"message": {
"gameId": game_id,
"userId": user_id,
"content": f"User {user_id} won"
}
}
Expand All @@ -410,6 +412,8 @@ async def puzzle_duel(sid, msg):
response = {
"status": "end",
"message": {
"gameId": game_id,
"userId": user_id_win,
"content": f"User {user_id_win} won"
}
}
Expand Down

0 comments on commit 5c15feb

Please sign in to comment.