openai / maddpg

Code for the MADDPG algorithm from the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
1.6k stars 484 forks source link

Error in scenario simple_reference with gym.spaces.MultiDiscrete #15

Closed hcch0912 closed 6 years ago

hcch0912 commented 6 years ago

In gym versions later than 0.9.5, the MultiDiscrete is modified, which is n longer compatible with the simple_reference scenario.

Got Error: assert self.nvec.ndim == 1, 'nvec should be a 1d array (or list) of ints' AssertionError: nvec should be a 1d array (or list) of ints

where self.ncev = [[0,9],[0,4]]

ryan-lowe commented 6 years ago

Thanks! Should be fixed in the latest commits to multiagent-particle-envs