Skip to content

Commit

Permalink
Play finishes after one episode resulting in an broken pipe.
Browse files Browse the repository at this point in the history
Not shure if the animation should be endless, but an error is wrong and the server part was written to do more than 1 episode.
#8
  • Loading branch information
TheCrazyT committed Aug 6, 2018
1 parent ecf5279 commit 1d4909d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent_zoo/demo_pong.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ def play(env, pi, video):
pi = Pol1(env.observation_space, env.action_space)
else:
pi = Pol2(env.observation_space, env.action_space)
play(env, pi, video=False) # set video = player_n==0 to record video
while True:
play(env, pi, video=False) # set video = player_n==0 to record video

0 comments on commit 1d4909d

Please sign in to comment.