This simulation demonstrates emergent collective behavior where each agent has two relationships: a partner (ally) and an enemy (threat). Agents continuously move to maintain strategic positions based on the selected mode.
Agent Relationships
Each agent randomly selects:
Partner ♥ - An ally to protect or be protected by
Enemy ⚔ - A threat to defend against
Behavior Modes
🛡️ Shield Mode "I will protect my partner from my enemy"
Agent positions itself between enemy and partner, acting as a shield.
⚔️ Sword Mode "My partner will protect me from my enemy"
Agent stays behind partner, using them as protection from enemy.
Emergent Behaviors
Complex group dynamics emerge because:
Each agent serves multiple roles (someone's partner AND someone's enemy)
Agents are constantly pulled in different directions