Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SanSiroSam opened this issue Jan 25, 2024 · 0 comments
Open

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

SanSiroSam opened this issue Jan 25, 2024 · 0 comments

Comments

@SanSiroSam
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant