From 4cfc04ee567175d1c8f478a9ed47d0399be7b97c Mon Sep 17 00:00:00 2001 From: Lucas Alegre Date: Tue, 15 Nov 2022 12:25:04 +0100 Subject: [PATCH] Update README with new PettingZoo API --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5baf3501..b56cf4e0 100755 --- a/README.md +++ b/README.md @@ -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 @@ -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) ```