Create one or more agents at random positions within the bounds
To use this behaviour, specify one or more "scatter_templates"
in init.json
. The field "template_name"
specifies the name of a specific scatter template, and "template_count"
specifies the number of agents to create in the scatter. The fields and behaviors of the created agents may be set in the template. For example:
[{
"behaviors": [
"@hash/create-scatters/create_scatters.js",
"@hash/create-agents/create_agents.js",
"@hash/remove-self/remove_self.js"
],
"scatter_templates": [{
"template_name": "people",
"template_count": 20,
"coins": 1000,
"color": "red",
"behaviors": [
"make_bet.js",
"@hash/random-movement/random_movement.rs"
]
}]
}]
This behavior also requires the bounds of the topology to be set in globals.json
. For example:
{
"topology": {
"x_bounds": [0, 10],
"y_bounds": [0, 10]
}
}
Example simulations using this behavior include: