Esempio n. 1
0
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
Esempio n. 2
0
def join_game(client,game_id):
    client.game_id=game_id
    client.join_game()
    client.update_player_info()
    client.update_game()