Skip to content

Commit

Permalink
Merge branch 'UI-UX' of github.com:TINF21CS1/TicTacToeKojote into UI-UX
Browse files Browse the repository at this point in the history
  • Loading branch information
HOOK-Hawkins committed Mar 14, 2024
2 parents 6fb5281 + 64718a7 commit 83a16fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Client/ui_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ async def await_commands(self):
await self.terminate()
case "game/gamestate":
self.send_gamestate_to_ui()
case "statistics/statistics":
self._out_queue.put({
"message_type": "statistics/statistics",
"statistics": self._statistics
})
self._tk_root.event_generate("<<statistics/statistics>>", when="tail")
case _:
logger.error(f"Unknown message type received from UI in in_queue: {message['message_type']}")
return
Expand Down

0 comments on commit 83a16fb

Please sign in to comment.