You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the n_coop attribute in the Waterworld game one is supposed to see a clustering of "n" pursuers to be able to catch an evader.
What I'm seeing with the code example that I'll post next is that even with n_coop=2 one lonely pursuer can still catch an evader.
Code example
from pettingzoo.sisl import waterworld_v4
env = waterworld_v4.env(render_mode='human', n_coop=2, n_pursuers=4)
env.reset()
foragentinenv.agent_iter():
observation, reward, termination, truncation, info = env.last()
if termination or truncation:
action = None
else:
action = env.action_space(agent).sample() # this is where you would insert your policy
env.step(action)
env.close()
System info
Pettingzoo version == master
Built from source
Additional context
No response
Checklist
I have checked that there is no similar issue in the repo
The text was updated successfully, but these errors were encountered:
There is a bug in waterworld related to multiple pursuers. I have a fixed version locally but I haven't had a chance to push it yet. I'll try to do that this week. It may fix the behaviour you are seeing.
Hey @dm-ackerman that's cool!
I'll be happy to help you merge by fixing any compatibility issues, if you're interested in just submitting your PR.
Thanks Elliot! :)
Describe the bug
When using the
n_coop
attribute in the Waterworld game one is supposed to see a clustering of "n" pursuers to be able to catch an evader.What I'm seeing with the code example that I'll post next is that even with
n_coop=2
one lonely pursuer can still catch an evader.Code example
System info
Pettingzoo version == master
Built from source
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: