Merge branch 'dev' of https://github.com/datamllab/rlcard-showdown into dev
This commit is contained in:
commit
de153e3811
|
@ -129,15 +129,13 @@ def leduc_holdem_tournament(game, agents, num):
|
||||||
probabilities.append({'move':a, 'probability': p})
|
probabilities.append({'move':a, 'probability': p})
|
||||||
history['probabilities'] = probabilities
|
history['probabilities'] = probabilities
|
||||||
round_history.append(history)
|
round_history.append(history)
|
||||||
|
state, player_id = env.step(action, env.agents[player_id].use_raw)
|
||||||
perfect = env.get_perfect_information()
|
perfect = env.get_perfect_information()
|
||||||
if round_id < perfect['current_round']:
|
if round_id < perfect['current_round'] or env.is_over():
|
||||||
round_id = perfect['current_round']
|
round_id = perfect['current_round']
|
||||||
data['moveHistory'].append(round_history)
|
data['moveHistory'].append(round_history)
|
||||||
round_history = []
|
round_history = []
|
||||||
state, player_id = env.step(action, env.agents[player_id].use_raw)
|
|
||||||
perfect = env.get_perfect_information()
|
perfect = env.get_perfect_information()
|
||||||
if round_id < perfect['current_round']:
|
|
||||||
data['moveHistory'].append(round_history)
|
|
||||||
data['publicCard'] = perfect['public_card']
|
data['publicCard'] = perfect['public_card']
|
||||||
data = json.dumps(data)
|
data = json.dumps(data)
|
||||||
#data = json.dumps(data, indent=2, sort_keys=True)
|
#data = json.dumps(data, indent=2, sort_keys=True)
|
||||||
|
|
Loading…
Reference in New Issue