AW000 → AW001
In AW000, we examined whether a single agent could exist in the smallest possible artificial world.
This notebook asks the next question.
What changes when another agent exists?
To answer this question, we extend the previous world by introducing one additional agent while keeping everything else unchanged.
The purpose is not yet to study interaction, cooperation, or competition.
Instead, we simply examine the consequences of two agents coexisting in the same artificial world.
As in AW000, we begin by defining what exists before writing any Python code.
Compared with AW000, this notebook introduces only one new entity.
This artificial world now contains the following entities.
| Entity | Description |
|---|---|
| Universe | The environment in which the agents exist. |
| Agent #1 | The first active entity. |
| Agent #2 | The second active entity. |
| Energy | The internal state of each agent. |
To answer the question, we extend the previous artificial world by adding one additional agent.
This artificial world contains three entities:
Both agents exist in the same universe, but remain completely independent.
Neither agent can observe, communicate with, or affect the other.
By intentionally preventing interaction, we isolate the effect of introducing a second agent into the world.
The following diagram illustrates the ontology introduced above and the relationships among the entities in this artificial world.
class Agent:
def __init__(self, name, money):
self.name = name
self.money = money
def receive_money(self, amount):
self.money += amount
agent_1 = Agent("Agent 1", 100)
agent_2 = Agent("Agent 2", 200)
print(agent_1.name, agent_1.money)
print(agent_2.name, agent_2.money)
Agent 1 100 Agent 2 200
Run the simulation once and observe the behavior of both agents.
The simulation shows that two independent agents can coexist within the same universe.
Although they occupy the same world, no interaction occurs because no mechanism for interaction has been introduced.
The behavior of each agent is therefore identical to that of the single agent in AW000.
A second agent can exist in the same artificial world without changing the behavior of either agent.
The existence of multiple agents alone does not create interaction.
Interaction requires an additional mechanism connecting the agents.
This naturally leads to the next question explored in AW002.