def start_game(client): client.update_game() client.update_player_info() client.hand.sort(key=lambda x: x['Value']) gs = game_state.GameState(client.players_connected, client.hand, int(client.position) - 1) return gs
def join_game(client,game_id): client.game_id=game_id client.join_game() client.update_player_info() client.update_game()