openai / multiagent-particle-envs

Code for a multi-agent particle environment used in the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
2.4k stars 790 forks source link

the code about good_agents & adversaries at simple_tag.py #106

Open SanSiroSam opened 10 months ago

SanSiroSam commented 10 months ago

at simple_tag.py
line 11 and 12, which means there are 1 good agents, and 3 adversaries line 11 num_good_agents = 1 line 12 num_adversaries = 3 line 17 for i, agent in enumerate(world.agents): line 21 agent.adversary = True if i < num_adversaries else False The definition requires 1 good agent and 3 adversaries, but within the loop, it seems to be 3good agents and 1 adversaries in the agent's attribute definition.