From d2953d1ff404a1e74789406221dc3c02de9e190f Mon Sep 17 00:00:00 2001 From: Dave Ungerer Date: Sat, 23 Feb 2019 09:39:00 +0800 Subject: [PATCH] Fix call to render to include mandatory argument --- demos/play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/play.py b/demos/play.py index 1b6f9f1..28922e1 100644 --- a/demos/play.py +++ b/demos/play.py @@ -79,7 +79,7 @@ def main(env, policy_names, param_versions, max_episodes): observation = env.reset() print("-" * 5 + "Episode %d " % (num_episodes + 1) + "-" * 5) while num_episodes < max_episodes: - env.render() + env.render(mode='human') action = tuple([ pi.act(stochastic=True, observation=observation[i])[0] for i, pi in enumerate(policy)