Skip to content

Commit

Permalink
Update README with new PettingZoo API
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasAlegre committed Nov 15, 2022
1 parent 0827360 commit 4cfc04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ while not done:
```

### PettingZoo Multi-Agent API
See [Petting Zoo API](https://www.pettingzoo.ml/api) for more details.
See [Petting Zoo API](https://pettingzoo.farama.org/content/basic_usage/) for more details.

```python
import sumo_rl
Expand All @@ -134,7 +134,7 @@ env = sumo_rl.env(net_file='sumo_net_file.net.xml',
num_seconds=3600)
env.reset()
for agent in env.agent_iter():
observation, reward, done, info = env.last()
observation, reward, termination, truncation, info = env.last()
action = policy(observation)
env.step(action)
```
Expand Down

0 comments on commit 4cfc04e

Please sign in to comment.