scoring implemented; clients calculate scores individually and display ranks per player

This commit is contained in:
2025-07-16 11:15:05 +02:00
parent 72b68dd6f0
commit cc7afb5477
11 changed files with 80 additions and 3 deletions
+8
View File
@@ -539,6 +539,14 @@ async def process_input(message: str, websocket) -> None:
)
print(f"DING DING DING we have a winner!!! {data_object['client_id']}")
elif data_object["response"] == "end_game":
await lobby_manager.broadcast_message(
data_object["lobby_id"],
json.dumps({
"response": "end_game_request",
})
)
if __name__ == '__main__':
run_local = False