From 79c2eda4fedf61d63a4dfb889424021d084fe9d7 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Tue, 19 Sep 2023 17:07:12 +0200 Subject: [PATCH] Fixed minor issues --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ed2c093..0ac39e5 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ for i in range(1000): env.render() if terminated or truncated: - observation = env.reset() + observation, info = env.reset() ``` ### Black-box Environments @@ -131,7 +131,7 @@ for i in range(5): observation, reward, terminated, truncated, info = env.step(action) # terminated or truncated is always True as we are working on the episode level, hence we always reset() - observation = env.reset() + observation, info = env.reset() ``` To show all available environments, we provide some additional convenience variables. All of them return a dictionary @@ -257,9 +257,9 @@ for i in range(5): rewards += reward if terminated or truncated: - print(base_env_id, rewards) + print(rewards) rewards = 0 - observation = env.reset() + observatio, infon = env.reset() ``` ## Icon Attribution