How iain-crowe/artificial-society-simulation works
This is an agent-based landscape simulation. The CLI initializes a resource landscape and agents, then advances cycles by updating agents, regrowing resources, and collecting population totals for plotting. Agent behavior includes movement, resource consumption, survival, and reproduction; landscape capacity is initialized from a two-peak Gaussian model. The README also documents randomized capacity parameters and optional per-cycle map display. The graph reflects the supplied excerpts and README; other unsampled implementation details are not inferred.
Main entry points: simulate.py Simulation Runner · landscape.py Landscape and Cells · agent.py Agent Initialization · capacity_models.py Capacity Models
Components 9
Simulation Runtime
- Simulation Runner
simulate.py - Cycle Updates
simulate.py
Landscape and Agents
- Agent Behavior
components/agent.py - Agent Initialization
components/agent.py - Landscape and Cells
components/landscape.py
Resource Capacity
- Capacity Models
capacity_models.py
Simulation Output
- Map Display
simulate.py - Population Plot
plot.py
Other components
- CLI User
Connections 12
- CLI User → Simulation Runner: configures and starts
README.md - Simulation Runner → Landscape and Cells: creates
simulate.py - Simulation Runner → Agent Initialization: initializes agents
simulate.py - Agent Initialization → Agent Behavior: creates
components/agent.py - Agent Initialization → Landscape and Cells: places agents
components/agent.py - Simulation Runner → Cycle Updates: runs cycles
simulate.py - Cycle Updates → Agent Behavior: updates
simulate.py - Agent Behavior → Landscape and Cells: reads and updates cells
components/agent.py - Simulation Runner → Landscape and Cells: regrows resources
simulate.py - Landscape and Cells → Capacity Models: calculates cell capacity
components/landscape.py - Simulation Runner → Map Display: displays landscape
simulate.py - Simulation Runner → Population Plot: plots population totals
simulate.py