From 5ce6dc38829d7a5e530dbe0d33e016ef459ad1b6 Mon Sep 17 00:00:00 2001 From: Will Dudley <14932240+WillDudley@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:52:59 +0100 Subject: [PATCH] Update parallel.md --- docs/api/parallel.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/parallel.md b/docs/api/parallel.md index 552db0dfd..c60f6c921 100644 --- a/docs/api/parallel.md +++ b/docs/api/parallel.md @@ -7,11 +7,11 @@ In addition to the main API, we have a secondary parallel API for environments w Environments can be interacted with as follows: ``` python -parallel_env = pistonball_v1.parallel_env() +parallel_env = pistonball_v6.parallel_env() observations = parallel_env.reset() max_cycles = 500 for step in range(max_cycles): - actions = {agent: policy(observations[agent], agent) for agent in parallel_env.agents} + actions = {agent: parallel_env.action_space(agent).sample() for agent in parallel_env.agents} # this is where you would insert your policy observations, rewards, terminations, truncations, infos = parallel_env.step(actions) ``` @@ -67,4 +67,4 @@ for step in range(max_cycles): .. automethod:: observation_space .. automethod:: action_space -``` \ No newline at end of file +```