Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <[email protected]>
  • Loading branch information
Guillemdb committed Sep 1, 2024
1 parent 16d7d84 commit b7805c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Plangym currently supports all the following environments:
```python
import plangym
env = plangym.make(name="CartPole-v0")
state, obs = env.reset()
state, obs, info = env.reset()

state = state.copy()
action = env.action_space.sample()
Expand All @@ -46,7 +46,7 @@ new_state, observ, reward, end, truncated, info = data
```python
import plangym
env = plangym.make(name="CartPole-v0")
state, obs = env.reset()
state, obs, info = env.reset()

states = [state.copy() for _ in range(10)]
actions = [env.action_space.sample() for _ in range(10)]
Expand All @@ -62,7 +62,7 @@ new_states, observs, rewards, ends, truncateds, infos = data
import plangym
env = plangym.make(name="MsPacman-v0", n_workers=2)

state, obs = env.reset()
state, obs, info = env.reset()

states = [state.copy() for _ in range(10)]
actions = [env.action_space.sample() for _ in range(10)]
Expand Down

0 comments on commit b7805c2

Please sign in to comment.