Skip to content

Commit

Permalink
loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 15, 2020
1 parent f156aef commit 62a214b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hanabi_client.py
Expand Up @@ -173,7 +173,7 @@ def table_list(self, data_list):
self.table(data)

def table_gone(self, data):
del self.tables[data["id"]]
del self.tables[data["tableID"]]

def table_start(self, data):
# The server has told us that a game that we are in is starting
Expand Down Expand Up @@ -252,6 +252,15 @@ def game_action_list(self, data):
if state.current_player_index == state.our_player_index:
self.decide_action(data["tableID"])

# Let the server know that we have finished "loading the UI"
# (so that our name does not appear as red / disconnected)
self.send(
"loaded",
{
"tableID": data["tableID"],
},
)

def handle_action(self, data, table_id):
print(
'debug: got a game action of "'
Expand Down

0 comments on commit 62a214b

Please sign in to comment.