Skip to content

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

@SanSiroSam

Description

@SanSiroSam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions