Skip to content

Commit

Permalink
Fix(ui-client): Changed game/start message contents for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Petzys committed Mar 17, 2024
1 parent 09a5f89 commit 4b0548b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Client/ui_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ async def _message_handler(self, message_type: str):
self._out_queue.put({
"message_type": "game/start",
"starting_player": self._current_player,
"starting_player_symbol": self._symbol == "X",
"opponent": self._opponent,
"opponent_symbol": self._symbol != "X"
"player1": self._player,
"player2": self._opponent,
"player1_symbol": self._symbol == "X",
"player2_symbol": self._symbol != "X"
})
self._tk_root.event_generate("<<queue_input>>", when="tail")
case "game/end":
Expand Down

0 comments on commit 4b0548b

Please sign in to comment.