open_spiel icon indicating copy to clipboard operation
open_spiel copied to clipboard

Negotiation Game deterministic state

Open Linwenye opened this issue 5 months ago • 1 comments

Hi! As for the Negotiation game, I was expecting for the randomness of the initial game state, however, after conducting the code

    game = pyspiel.load_game("negotiation")
    state = game.new_initial_state()
    if state.is_chance_node():
        # Sample a chance event outcome.
        outcomes_with_probs = state.chance_outcomes()
        action_list, prob_list = zip(*outcomes_with_probs)
        action = np.random.choice(action_list, p=prob_list)
        state.apply_action(action)
        print(state)

It always return the same state. Why this happen?

Linwenye avatar Sep 08 '24 04:09 Linwenye