scoring implemented; clients calculate scores individually and display ranks per player
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user